fix(ActivityCenter): Fix Community and Chat badges in the Activity Center (#12866)

Close #10311
This commit is contained in:
Mikhail Rogachev 2023-11-27 14:37:05 +04:00 committed by GitHub
parent 4225873cf4
commit 26d867a63a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -174,6 +174,8 @@ method convertToItems*(
if (notification.notificationType == ActivityCenterNotificationType.ContactVerification):
repliedMessageItem = self.createMessageItemFromDto(notification.replyMessage, communityId, @[])
let chatDetails = self.controller.getChatDetails(notification.chatId)
return notification_item.initItem(
notification.id,
notification.chatId,
@ -190,7 +192,7 @@ method convertToItems*(
notification.accepted,
messageItem,
repliedMessageItem,
ChatType.Unknown # TODO: should use correct chat type
chatDetails.chatType
)
)