From 8f891b066c38086711021a268c35db4d7d91d8aa Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 4 Nov 2024 11:52:51 +0100 Subject: [PATCH] hicli/sync: don't send notifications on first sync --- pkg/hicli/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/hicli/sync.go b/pkg/hicli/sync.go index e02071f..957dc0f 100644 --- a/pkg/hicli/sync.go +++ b/pkg/hicli/sync.go @@ -619,7 +619,7 @@ func (h *HiClient) processStateAndTimeline( return -1, err } if isUnread { - if dbEvt.UnreadType.Is(database.UnreadTypeNotify) { + if dbEvt.UnreadType.Is(database.UnreadTypeNotify) && h.firstSyncReceived { newNotifications = append(newNotifications, SyncNotification{ RowID: dbEvt.RowID, Sound: dbEvt.UnreadType.Is(database.UnreadTypeSound),