mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
hicli/sync: always send room in sync if own receipts change
This commit is contained in:
parent
d1dedd51fe
commit
9254461795
1 changed files with 2 additions and 1 deletions
|
@ -695,7 +695,8 @@ func (h *HiClient) processStateAndTimeline(
|
|||
return fmt.Errorf("failed to save room data: %w", err)
|
||||
}
|
||||
}
|
||||
if roomChanged || len(timelineRowTuples) > 0 || len(allNewEvents) > 0 {
|
||||
// TODO why is *old* unread count sometimes zero when processing the read receipt that is making it zero?
|
||||
if roomChanged || len(newOwnReceipts) > 0 || len(timelineRowTuples) > 0 || len(allNewEvents) > 0 {
|
||||
ctx.Value(syncContextKey).(*syncContext).evt.Rooms[room.ID] = &SyncRoom{
|
||||
Meta: room,
|
||||
Timeline: timelineRowTuples,
|
||||
|
|
Loading…
Add table
Reference in a new issue