Skip to content

Commit

Permalink
fix/notication: fix duplicate mention user and ref tension.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrckd committed Dec 23, 2022
1 parent a4e71c9 commit 8548161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graph/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ func PushEventNotifications(notif model.EventNotif) error {
} else if len(m) > 0 {
notif.Rootnameid = m[0]["rootnameid"].(string)
notif.Receiverid = m[0]["receiverid"].(string)
notif.Msg, _ = m[0]["message"].(string)
notif.Title = m[0]["title"].(string)
notif.Msg, _ = m[0]["message"].(string)

if notif.Msg != "" {
if notif.Msg != "" && notif.HasEvent(model.TensionEventCommentPushed) {
// Mentioned users
err = UpdateWithMentionnedUser(notif.Msg, notif.Receiverid, users)
if err != nil { return err }
Expand Down

0 comments on commit 8548161

Please sign in to comment.