parent
d7710ce135
commit
6181583f95
|
@ -237,8 +237,6 @@ proc toChatDto*(jsonObj: JsonNode): ChatDto =
|
||||||
discard jsonObj.getProp("image", chatImage)
|
discard jsonObj.getProp("image", chatImage)
|
||||||
if (result.chatType == ChatType.PrivateGroupChat and len(chatImage) > 0):
|
if (result.chatType == ChatType.PrivateGroupChat and len(chatImage) > 0):
|
||||||
result.icon = chatImage
|
result.icon = chatImage
|
||||||
else:
|
|
||||||
discard jsonObj.getProp("identicon", result.icon)
|
|
||||||
|
|
||||||
var membersObj: JsonNode
|
var membersObj: JsonNode
|
||||||
if(jsonObj.getProp("members", membersObj)):
|
if(jsonObj.getProp("members", membersObj)):
|
||||||
|
|
Loading…
Reference in New Issue