good morning!!!!

Skip to content
Snippets Groups Projects
Commit f2014fb2 authored by aforge's avatar aforge
Browse files

Fix another CurrentCall.messageHead() crash.

(cherry picked from commit 4e160eab)
parent d541c078
No related branches found
No related tags found
No related merge requests found
......@@ -291,7 +291,11 @@ func (t *Topic) handleCallEvent(msg *ClientComMessage) {
msgCopy := *msg
msgCopy.AsUser = originatorUid.UserId()
replaceWith := constCallMsgAccepted
head := t.currentCall.messageHead(msgCopy.Pub.Head, replaceWith, 0)
var origHead map[string]any
if msgCopy.Pub != nil {
origHead = msgCopy.Pub.Head
} // else fetch the original message from store and use its head.
head := t.currentCall.messageHead(origHead, replaceWith, 0)
if err := t.saveAndBroadcastMessage(&msgCopy, originatorUid, false, nil,
head, t.currentCall.content); err != nil {
return
......
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