Own messages can't cause a notification anymore
@@ -469,6 +469,8 @@ func NewWindow(discord *discordgo.Session) (*Window, error) {
window.SetMessages(append(window.shownMessages, message))
})
} else {
+ if message.Author.ID != window.session.State.User.ID {
+
mentionsYou := false
for _, user := range message.Mentions {
if user.ID == window.session.State.User.ID {
@@ -490,6 +492,7 @@ func NewWindow(discord *discordgo.Session) (*Window, error) {
beeep.Notify("Cordless - "+channel.Name, message.ContentWithMentionsReplaced(), "assets/information.png")
}
}
+ }
window.app.QueueUpdateDraw(func() {
