fix(dto/chat): fix toChannelMember where `isAidropAddress` can be null
This commit is contained in:
parent
8a97c0ca3a
commit
8696234273
|
@ -246,7 +246,7 @@ proc toChannelMember*(jsonObj: JsonNode, memberId: string, joined: bool): ChatMe
|
|||
var revealedAccountsObj: JsonNode
|
||||
if jsonObj.getProp("revealed_accounts", revealedAccountsObj):
|
||||
for revealedAccountObj in revealedAccountsObj:
|
||||
if revealedAccountObj["isAirdropAddress"].getBool:
|
||||
if revealedAccountObj{"isAirdropAddress"}.getBool:
|
||||
var chainIdsObj: JsonNode
|
||||
var chainIds: seq[int] = @[]
|
||||
if revealedAccountObj.getProp("chain_ids", chainIdsObj):
|
||||
|
|
Loading…
Reference in New Issue