hicli/sync: always send room in sync if own receipts change

This commit is contained in:
Tulir Asokan 2024-10-17 23:22:29 +03:00
parent d1dedd51fe
commit 9254461795

View file

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