aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo
diff options
context:
space:
mode:
authorSamuel Hand <samuel.hand@openmailbox.org>2018-07-04 17:44:23 +0100
committerSamuel Hand <samuel.hand@openmailbox.org>2018-07-04 17:44:23 +0100
commita3c0c24b7e688ce2787e1550f228403744d10063 (patch)
tree321d4fe4bf69388904ac355397dfbdc11a21be86 /plugins/omemo
parent638d81d67ecd6c7c8be7fd67aeaf15d16486f8e9 (diff)
downloaddino-a3c0c24b7e688ce2787e1550f228403744d10063.tar.gz
dino-a3c0c24b7e688ce2787e1550f228403744d10063.zip
Fix a bug where notifications wouldn't display upon a new device being added
Diffstat (limited to 'plugins/omemo')
-rw-r--r--plugins/omemo/src/device_notification_populator.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/omemo/src/device_notification_populator.vala b/plugins/omemo/src/device_notification_populator.vala
index 8549e052..a6a51742 100644
--- a/plugins/omemo/src/device_notification_populator.vala
+++ b/plugins/omemo/src/device_notification_populator.vala
@@ -26,8 +26,8 @@ public class DeviceNotificationPopulator : NotificationPopulator, Object {
public void init(Conversation conversation, NotificationCollection notification_collection, Plugins.WidgetType type) {
current_conversation = conversation;
this.notification_collection = notification_collection;
- stream_interactor.module_manager.get_module(conversation.account, StreamModule.IDENTITY).device_list_loaded.connect((jid) => {
- if (jid == conversation.counterpart && has_new_devices(conversation.counterpart) && conversation.type_ == Conversation.Type.CHAT) {
+ stream_interactor.module_manager.get_module(conversation.account, StreamModule.IDENTITY).bundle_fetched.connect_after((jid, device_id, bundle) => {
+ if (jid.equals(conversation.counterpart) && has_new_devices(conversation.counterpart) && conversation.type_ == Conversation.Type.CHAT) {
display_notification();
}
});