Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Fix #332
Browse files Browse the repository at this point in the history
  • Loading branch information
Bios-Marcel committed Sep 7, 2020
1 parent ecd18e3 commit 7a55188
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,9 @@ func (window *Window) startMessageHandlerRoutines(input, edit, delete chan *disc

if config.Current.DesktopNotifications {
notifyError := window.handleNotification(message, channel)
log.Printf("["+tviewutil.ColorToHex(config.GetTheme().ErrorColor)+"]Error sending notification:\n\t[%s]%s\n", tviewutil.ColorToHex(config.GetTheme().ErrorColor), notifyError)
if notifyError != nil {
log.Printf("["+tviewutil.ColorToHex(config.GetTheme().ErrorColor)+"]Error sending notification:\n\t[%s]%s\n", tviewutil.ColorToHex(config.GetTheme().ErrorColor), notifyError)
}
}

if window.selectedChannel == nil || message.ChannelID != window.selectedChannel.ID {
Expand Down

0 comments on commit 7a55188

Please sign in to comment.