Fixes FS#135: condition NOT message.isRead() added to check if notification should be shown for a message
This commit is contained in:
parent
0594e1f8f8
commit
362c00d31b
1 changed files with 7 additions and 6 deletions
|
@ -64,12 +64,13 @@ public class NotificationService {
|
|||
|
||||
public boolean notify(final Message message) {
|
||||
return (message.getStatus() == Message.STATUS_RECEIVED)
|
||||
&& ConversationsPlusPreferences.showNotification()
|
||||
&& !message.getConversation().isMuted()
|
||||
&& (message.getConversation().getMode() == Conversation.MODE_SINGLE
|
||||
|| ConversationsPlusPreferences.alwaysNotifyInConference()
|
||||
|| wasHighlightedOrPrivate(message)
|
||||
);
|
||||
&& !message.isRead()
|
||||
&& ConversationsPlusPreferences.showNotification()
|
||||
&& !message.getConversation().isMuted()
|
||||
&& (message.getConversation().getMode() == Conversation.MODE_SINGLE
|
||||
|| ConversationsPlusPreferences.alwaysNotifyInConference()
|
||||
|| wasHighlightedOrPrivate(message)
|
||||
);
|
||||
}
|
||||
|
||||
public void notifyPebble(final Message message) {
|
||||
|
|
Loading…
Add table
Reference in a new issue