sticky -> clientSticky to avoid conflicts with sticky events

This commit is contained in:
Henry Hiles 2026-09-11 19:46:04 -04:00
commit 9e7fcdbef7
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
3 changed files with 9 additions and 8 deletions

View file

@ -43,7 +43,7 @@ class RoomChatController(final String roomId)
.toEntryIList(compare: (a, b) => (a?.key ?? 0).compareTo(b?.key ?? 0))
.map((element) => element.value)
.toIList()
.addAll(room.sticky)
.addAll(room.clientSticky)
.map((entry) {
final foundEvent = entry == null ? null : room.events[entry];
@ -173,7 +173,7 @@ class RoomChatController(final String roomId)
.new({
roomId: .new(
events: .new({event.rowId: event}),
sticky: .new({event.rowId}),
clientSticky: .new({event.rowId}),
),
}),
.new(),