Merge pull request 'add group message popup notifications' (#56) from groupnotifs into trunk
continuous-integration/drone/push Build is passing Details

Reviewed-on: #56
This commit is contained in:
Sarah Jamie Lewis 2021-06-16 17:00:11 -07:00
commit 08b1b19f7a
1 changed files with 4 additions and 0 deletions

View File

@ -239,6 +239,10 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
// only needs contact nickname and picture, for displaying on popup notifications
ev.Event.Data["Nick"] = ph.GetNick(ev.Event.Data["RemotePeer"])
ev.Event.Data["Picture"] = ph.GetProfilePic(ev.Event.Data["RemotePeer"])
case event.NewMessageFromGroup:
// only needs contact nickname and picture, for displaying on popup notifications
ev.Event.Data["Nick"] = ph.GetNick(ev.Event.Data[event.GroupID])
ev.Event.Data["Picture"] = ph.GetProfilePic(ev.Event.Data[event.GroupID])
case event.PeerAcknowledgement:
// No enrichement required
case event.PeerCreated: