refactor(contact-service): `ContactsDto` images issue fixed
This affects app search, now chats in location menu as well as senders' images of the displayed messages in the search result.
This commit is contained in:
parent
f27a3cc8dc
commit
de9b475dd5
|
@ -54,11 +54,11 @@ proc toImages(jsonObj: JsonNode): Images =
|
|||
|
||||
var largeObj: JsonNode
|
||||
if(jsonObj.getProp("large", largeObj)):
|
||||
discard jsonObj.getProp("uri", result.large)
|
||||
discard largeObj.getProp("uri", result.large)
|
||||
|
||||
var thumbnailObj: JsonNode
|
||||
if(jsonObj.getProp("thumbnail", thumbnailObj)):
|
||||
discard jsonObj.getProp("uri", result.thumbnail)
|
||||
discard thumbnailObj.getProp("uri", result.thumbnail)
|
||||
|
||||
proc toContactsDto*(jsonObj: JsonNode): ContactsDto =
|
||||
result = ContactsDto()
|
||||
|
|
Loading…
Reference in New Issue