mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
hicli/sync: don't send notifications on first sync
This commit is contained in:
parent
24dea86c9e
commit
8f891b066c
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue