mirror of
https://github.com/status-im/status-go.git
synced 2025-01-22 04:31:30 +00:00
parent
ee6621b066
commit
3d7ab79d91
@ -241,8 +241,6 @@ func (s *MessageSender) SendGroup(
|
||||
}
|
||||
}
|
||||
|
||||
rawMessage.BeforeDispatch = nil
|
||||
|
||||
// Send to each recipients
|
||||
for _, recipient := range recipients {
|
||||
_, err = s.sendPrivate(ctx, recipient, &rawMessage)
|
||||
|
@ -2399,6 +2399,9 @@ func (m *Messenger) sendChatMessage(ctx context.Context, message *common.Message
|
||||
return err
|
||||
}
|
||||
|
||||
// ensure that the message is saved only once
|
||||
rawMessage.BeforeDispatch = nil
|
||||
|
||||
return m.persistence.SaveMessages([]*common.Message{message})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user