aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-05-21 21:42:39 +0200
committerfiaxh <git@lightrise.org>2019-05-26 20:20:09 +0200
commit03f25e1f87dd4608c7cf4d0f97d1cb2e0141094d (patch)
treeedbbef9cad6e0548ea27bb09c988b4717c49cb37 /plugins/omemo/src
parent32687d731f50969545e0122e13c395cfa5f859a1 (diff)
downloaddino-03f25e1f87dd4608c7cf4d0f97d1cb2e0141094d.tar.gz
dino-03f25e1f87dd4608c7cf4d0f97d1cb2e0141094d.zip
Remove Message.stanza field
Diffstat (limited to 'plugins/omemo/src')
-rw-r--r--plugins/omemo/src/device_notification_populator.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/omemo/src/device_notification_populator.vala b/plugins/omemo/src/device_notification_populator.vala
index bcb99f11..5b47611c 100644
--- a/plugins/omemo/src/device_notification_populator.vala
+++ b/plugins/omemo/src/device_notification_populator.vala
@@ -56,7 +56,7 @@ public class DeviceNotificationPopulator : NotificationPopulator, Object {
private void on_account_added(Account account) {
stream_interactor.module_manager.get_module(account, StreamModule.IDENTITY).bundle_fetched.connect_after((jid, device_id, bundle) => {
- if (jid.equals(current_conversation.counterpart) && has_new_devices(current_conversation.counterpart)) {
+ if (current_conversation != null && jid.equals(current_conversation.counterpart) && has_new_devices(current_conversation.counterpart)) {
display_notification();
}
});