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

@ -15,7 +15,7 @@ class const Room({
@JsonKey(fromJson: Room.timelineTupleJsonToIMap)
final IMap<int, int?> timeline = const IMap.empty(),
final ISet<int> sticky = const ISet.empty(),
final ISet<int> clientSticky = const ISet.empty(),
@JsonKey(fromJson: Room.eventsJsonToIMap)
final IMap<int, Event> events = const IMap.empty(),
@ -34,7 +34,7 @@ class const Room({
}) with _$Room {
/// [timeline] is an IMap of timelineRowId to eventRowId
/// [events] is an IMap of eventRowId to event
/// [sticky] is an ISet of eventRowId
/// [clientSticky] is an ISet of eventRowId
static IMap<int, int?> timelineTupleJsonToIMap(List<dynamic> json) =>
IMap.fromEntries(
json.map(