feat: synchronisation mode deconnecte fin chat et stats

This commit is contained in:
2025-08-31 18:21:20 +02:00
parent 41a4505b4b
commit 604294af96
149 changed files with 285769 additions and 250633 deletions

View File

@@ -24,13 +24,19 @@ class RoomAdapter extends TypeAdapter<Room> {
lastMessage: fields[4] as String?,
lastMessageAt: fields[5] as DateTime?,
unreadCount: fields[6] as int,
recentMessages: (fields[7] as List?)
?.map((dynamic e) => (e as Map).cast<String, dynamic>())
?.toList(),
updatedAt: fields[8] as DateTime?,
createdBy: fields[9] as int?,
isSynced: fields[10] as bool,
);
}
@override
void write(BinaryWriter writer, Room obj) {
writer
..writeByte(7)
..writeByte(11)
..writeByte(0)
..write(obj.id)
..writeByte(1)
@@ -44,7 +50,15 @@ class RoomAdapter extends TypeAdapter<Room> {
..writeByte(5)
..write(obj.lastMessageAt)
..writeByte(6)
..write(obj.unreadCount);
..write(obj.unreadCount)
..writeByte(7)
..write(obj.recentMessages)
..writeByte(8)
..write(obj.updatedAt)
..writeByte(9)
..write(obj.createdBy)
..writeByte(10)
..write(obj.isSynced);
}
@override