@@ -160,8 +160,8 @@ class ChatRemoteRepository {
160160 unreadMessagesMap[chatID]? ['unreadMessagesCount' ] ?? 0 ,
161161 isMentioned: unreadMessagesMap[chatID]? ['isMentioned' ] ?? false ,
162162 isFiltered: chat['chat' ]['type' ] != 'private'
163- ? chat['chat' ]['isFilterd' ]
164- : false ,
163+ ? chat['chat' ]['isFilterd' ]
164+ : false ,
165165 );
166166
167167 chats.add (chatModel);
@@ -315,12 +315,11 @@ class ChatRemoteRepository {
315315 contentType: contentType,
316316 text: text,
317317 fileName: message['fileName' ],
318- mediaUrl: message['mediaUrl ' ],
318+ mediaUrl: message['media ' ],
319319 );
320320
321- final threadMessages = (message['threadMessages' ] as List )
322- .map ((e) => e as String )
323- .toList ();
321+ final threadMessages =
322+ (message['threadMessages' ] as List ).map ((e) => e as String ).toList ();
324323
325324 // the connumicationType attribute is extra
326325 return MessageModel (
@@ -374,7 +373,7 @@ class ChatRemoteRepository {
374373 encryptionKey: encryptionKey,
375374 initializationVector: initializationVector,
376375 chatType: chatType,
377- isFiltered: isFiltered,
376+ isFiltered: isFiltered,
378377 ),
379378 )
380379 .toList ();
@@ -435,7 +434,6 @@ class ChatRemoteRepository {
435434 Future <({AppError ? appError, ChatModel ? chat})> getChat (
436435 String sessionID, String chatID) async {
437436 try {
438-
439437 return (appError: null , chat: null );
440438 } catch (e) {
441439 debugPrint ('!!! Failed to get other user data, ${e .toString ()}' );
0 commit comments