небольшие изменения

This commit is contained in:
Jganenokk
2026-07-05 19:07:27 +07:00
parent 26f0094705
commit 9f9b0e0734
214 changed files with 27592 additions and 15353 deletions
+4 -8
View File
@@ -106,11 +106,12 @@ Future<void> _openResolvedChat(
final profile = await AppDatabase.loadActiveProfile();
final myId = profile?.id ?? 0;
final participants = chat['participants'];
final isMember = myId != 0 &&
final isMember =
myId != 0 &&
participants is Map &&
participants.containsKey(myId.toString());
await ChatsModule.cacheServerChat(chat, myId, inList: isMember);
await chats.cacheServerChat(chat, myId, inList: isMember);
if (!context.mounted) return;
if (link.kind == MaxLinkKind.invite && access == 'PRIVATE' && !isMember) {
@@ -133,12 +134,7 @@ Future<void> _openResolvedChat(
pushSwipeable(
context,
(_) => ChatScreen(
chatId: id,
name: title,
imageUrl: icon,
chatType: type,
),
(_) => ChatScreen(chatId: id, name: title, imageUrl: icon, chatType: type),
);
}