aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils/UIHelper.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-04 17:58:53 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-04 17:58:53 +0200
commit34bd79ac04e6e7908faeacd9b1bcfa50bc73397e (patch)
treea4191f9b75a408ece2ceb4598aa91093fff32502 /src/eu/siacs/conversations/utils/UIHelper.java
parentb9243033dfd8fddca4a727018e6e1bbd720b771f (diff)
notify on incomming received carbon messages
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/utils/UIHelper.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java
index 3cc99dc5..73a0494b 100644
--- a/src/eu/siacs/conversations/utils/UIHelper.java
+++ b/src/eu/siacs/conversations/utils/UIHelper.java
@@ -191,8 +191,14 @@ public class UIHelper {
List<Conversation> unread = new ArrayList<Conversation>();
for (Conversation conversation : conversations) {
- if ((!conversation.isRead())&&((wasHighlighted(conversation)||(alwaysNotify)))) {
- unread.add(conversation);
+ if (conversation.getMode() == Conversation.MODE_MULTI) {
+ if ((!conversation.isRead())&&((wasHighlighted(conversation)||(alwaysNotify)))) {
+ unread.add(conversation);
+ }
+ } else {
+ if (!conversation.isRead()) {
+ unread.add(conversation);
+ }
}
}
String ringtone = preferences.getString("notification_ringtone", null);