Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Mar 26, 2023
2 parents c7a491e + f2014fb commit 03ac4c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/calls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03ac4c1

Please sign in to comment.