Skip to content
Snippets Groups Projects
Commit 0c7288d1 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Modify MuteUser worker func to print the data it's trying to decode on error

parent 8f293be9
No related branches found
No related tags found
1 merge request!109Project/haven beta
...@@ -332,12 +332,12 @@ func (m *manager) muteUserCB(data []byte) ([]byte, error) { ...@@ -332,12 +332,12 @@ func (m *manager) muteUserCB(data []byte) ([]byte, error) {
"failed to JSON unmarshal %T from main thread: %+v", msg, err) "failed to JSON unmarshal %T from main thread: %+v", msg, err)
} }
channelID := id.ID{} channelID := &id.ID{}
err = channelID.UnmarshalJSON(msg.ChannelID) err = channelID.UnmarshalJSON(msg.ChannelID)
if err != nil { if err != nil {
return nil, err return nil, errors.Wrapf(err, "ChannelID: %+v", msg.ChannelID)
} }
m.model.MuteUser(&channelID, msg.PubKey, msg.Unmute) m.model.MuteUser(channelID, msg.PubKey, msg.Unmute)
return nil, nil return nil, nil
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment