1
0
Fork 0
forked from Mirrors/gomuks

hicli/sync: don't send notifications on first sync

This commit is contained in:
Tulir Asokan 2024-11-04 11:52:51 +01:00
parent 24dea86c9e
commit 8f891b066c

View file

@ -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),