mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-16 16:47:24 +00:00
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
|
var revealedAccountsObj: JsonNode
|
||||||
if jsonObj.getProp("revealed_accounts", revealedAccountsObj):
|
if jsonObj.getProp("revealed_accounts", revealedAccountsObj):
|
||||||
for revealedAccountObj in revealedAccountsObj:
|
for revealedAccountObj in revealedAccountsObj:
|
||||||
if revealedAccountObj["isAirdropAddress"].getBool:
|
if revealedAccountObj{"isAirdropAddress"}.getBool:
|
||||||
var chainIdsObj: JsonNode
|
var chainIdsObj: JsonNode
|
||||||
var chainIds: seq[int] = @[]
|
var chainIds: seq[int] = @[]
|
||||||
if revealedAccountObj.getProp("chain_ids", chainIdsObj):
|
if revealedAccountObj.getProp("chain_ids", chainIdsObj):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user