forked from Mirrors/gomuks
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
|
return -1, err
|
||||||
}
|
}
|
||||||
if isUnread {
|
if isUnread {
|
||||||
if dbEvt.UnreadType.Is(database.UnreadTypeNotify) {
|
if dbEvt.UnreadType.Is(database.UnreadTypeNotify) && h.firstSyncReceived {
|
||||||
newNotifications = append(newNotifications, SyncNotification{
|
newNotifications = append(newNotifications, SyncNotification{
|
||||||
RowID: dbEvt.RowID,
|
RowID: dbEvt.RowID,
|
||||||
Sound: dbEvt.UnreadType.Is(database.UnreadTypeSound),
|
Sound: dbEvt.UnreadType.Is(database.UnreadTypeSound),
|
||||||
|
|
Loading…
Add table
Reference in a new issue