Bug fix on HandleMembershipUpdate()

This commit is contained in:
Samuel Hawksby-Robinson 2020-07-26 22:37:04 +01:00 committed by Andrea Maria Piana
parent 45c1e5ba1c
commit e9eb05e3d1
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 2 additions and 3 deletions

View File

@ -107,9 +107,8 @@ func (m *MessageHandler) HandleMembershipUpdate(messageState *ReceivedMessageSta
// Set in the map // Set in the map
messageState.ModifiedChats[chat.ID] = true messageState.ModifiedChats[chat.ID] = true
msg, ok := message.Message.(*protobuf.ChatMessage) if message.Message != nil {
if msg != nil && ok { messageState.CurrentMessageState.Message = *message.Message
messageState.CurrentMessageState.Message = *msg
return m.HandleChatMessage(messageState) return m.HandleChatMessage(messageState)
} }