Skip to content

Commit 16c43c6

Browse files
committed
add field for group avatarThumbPath
1 parent f6f0d77 commit 16c43c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ios/RCTJMessageModule/JMessageHelper.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,13 @@ -(NSMutableDictionary*)groupToDictionary{
348348
dict[@"isNoDisturb"] = @(self.isNoDisturb);
349349
dict[@"isShieldMessage"] = @(self.isShieldMessage);
350350
dict[@"displayName"] = self.displayName;
351+
352+
if([[NSFileManager defaultManager] fileExistsAtPath: [self thumbAvatarLocalPath] ?: @""]){
353+
dict[@"avatarThumbPath"] = [self thumbAvatarLocalPath];
354+
} else {
355+
dict[@"avatarThumbPath"] = @"";
356+
}
357+
351358
return dict;
352359
}
353360
@end

0 commit comments

Comments
 (0)