Skip to content
Snippets Groups Projects
Commit 193a41cb authored by Jake Taylor's avatar Jake Taylor
Browse files

fix segfault in channels impl eventmodel

parent a1d05308
No related branches found
No related tags found
1 merge request!515Release
...@@ -132,10 +132,12 @@ func (i *impl) UpdateFromUUID(uuid uint64, messageID *message.ID, timestamp *tim ...@@ -132,10 +132,12 @@ func (i *impl) UpdateFromUUID(uuid uint64, messageID *message.ID, timestamp *tim
msgToUpdate := &Message{ msgToUpdate := &Message{
Id: uuid, Id: uuid,
MessageId: messageID.Marshal(),
Hidden: hidden, Hidden: hidden,
Pinned: pinned, Pinned: pinned,
} }
if messageID != nil {
msgToUpdate.MessageId = messageID.Marshal()
}
if round != nil { if round != nil {
msgToUpdate.Round = uint64(round.ID) msgToUpdate.Round = uint64(round.ID)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment