fix failure to return after chat retrieval error

This commit is contained in:
cryptonote-social 2020-12-26 14:57:08 -08:00
parent 4d534cbe78
commit 764bd70c18

View File

@ -621,6 +621,7 @@ func GetChats() {
resp, err := cl.GetChats(nt)
if err != nil {
crylog.Error("Failed to retrieve chats:", nt, err)
return
}
cr := &client.GetChatsResult{}
err = json.Unmarshal(*resp.Result, cr)