add group message popup notifications #56

Merged
sarah merged 4 commits from groupnotifs into trunk 2021-06-17 00:00:13 +00:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit d9f9489fa2 - Show all commits

View File

@ -235,6 +235,8 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
}*/
case event.NewMessageFromPeer: //event.TimestampReceived, event.RemotePeer, event.Data
fallthrough
case event.NewMessageFromGroup:
// 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"])