aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/notification_events.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-05-21 21:39:53 +0200
committerfiaxh <git@lightrise.org>2019-05-21 22:10:05 +0200
commit32687d731f50969545e0122e13c395cfa5f859a1 (patch)
tree03b738085d21b5676e63661ae23d9ed45126ff4e /libdino/src/service/notification_events.vala
parentad16b188715f9612d4fb2b72690682f2b2eaaff2 (diff)
downloaddino-32687d731f50969545e0122e13c395cfa5f859a1.tar.gz
dino-32687d731f50969545e0122e13c395cfa5f859a1.zip
Revert "Fix notifications for servers without MAM"
This reverts commit 80b946c85c9235deb5471cdc4f0d561a4fb5a3bb.
Diffstat (limited to 'libdino/src/service/notification_events.vala')
-rw-r--r--libdino/src/service/notification_events.vala7
1 files changed, 1 insertions, 6 deletions
diff --git a/libdino/src/service/notification_events.vala b/libdino/src/service/notification_events.vala
index ea95278d..47ec44e1 100644
--- a/libdino/src/service/notification_events.vala
+++ b/libdino/src/service/notification_events.vala
@@ -44,12 +44,7 @@ public class NotificationEvents : StreamInteractionModule, Object {
}
private void on_content_item_received(ContentItem item, Conversation conversation) {
- bool is_mam_message = true;
- if (item.type_ == MessageItem.TYPE) {
- // If this message is not for MAM, always notify
- is_mam_message = Xep.MessageArchiveManagement.MessageFlag.get_flag((item as MessageItem).message.stanza) != null;
- }
- if (!synced_accounts.contains(conversation.account) && is_mam_message) {
+ if (!synced_accounts.contains(conversation.account)) {
if (!mam_potential_new.has_key(conversation.account)) {
mam_potential_new[conversation.account] = new HashMap<Conversation, ContentItem>(Conversation.hash_func, Conversation.equals_func);
}