diff --git a/indexedDb/impl/channels/callbacks.go b/indexedDb/impl/channels/callbacks.go index 7fe0a8a13385c5984ccc005853231634a9d4a8d6..d6d188a7340263ab9f995ea19f4fb9f7260c14f1 100644 --- a/indexedDb/impl/channels/callbacks.go +++ b/indexedDb/impl/channels/callbacks.go @@ -332,12 +332,12 @@ func (m *manager) muteUserCB(data []byte) ([]byte, error) { "failed to JSON unmarshal %T from main thread: %+v", msg, err) } - channelID := id.ID{} + channelID := &id.ID{} err = channelID.UnmarshalJSON(msg.ChannelID) 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 }