mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-27 23:05:57 +00:00
parent
851228544b
commit
e944263b57
@ -256,6 +256,8 @@ proc toChatDto*(jsonObj: JsonNode, communityId: string): ChatDto =
|
||||
result = jsonObj.toChatDto()
|
||||
result.chatType = ChatType.CommunityChat
|
||||
result.communityId = communityId
|
||||
if communityId != "":
|
||||
result.id = communityId & result.id.replace(communityId, "") # Adding communityID prefix in case it's not available
|
||||
|
||||
proc isPublicChat*(chatDto: ChatDto): bool =
|
||||
return chatDto.chatType == ChatType.Public
|
||||
|
Loading…
x
Reference in New Issue
Block a user