Merge pull request 'fix notification settings for groups' (#73) from fixNotifyGroup into trunk
continuous-integration/drone/push Build is passing Details

Reviewed-on: #73
This commit is contained in:
Sarah Jamie Lewis 2022-02-09 21:21:35 +00:00
commit a6277fc998
1 changed files with 2 additions and 1 deletions

View File

@ -341,7 +341,8 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
if ci != nil && ci.Accepted {
handleImagePreviews(profile, &ev.Event, conversationID, ci.ID)
}
ev.Event.Data["notification"] = string(determineNotification(ci))
gci, err := profile.GetConversationInfo(conversationID)
ev.Event.Data["notification"] = string(determineNotification(gci))
case event.PeerAcknowledgement:
ci, err := profile.FetchConversationInfo(ev.Event.Data["RemotePeer"])
if ci != nil && err == nil {