aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/service/avatar_manager.vala6
-rw-r--r--libdino/src/service/history_sync.vala3
-rw-r--r--libdino/src/service/message_processor.vala1
3 files changed, 3 insertions, 7 deletions
diff --git a/libdino/src/service/avatar_manager.vala b/libdino/src/service/avatar_manager.vala
index 1296856b..3bd38e72 100644
--- a/libdino/src/service/avatar_manager.vala
+++ b/libdino/src/service/avatar_manager.vala
@@ -52,7 +52,7 @@ public class AvatarManager : StreamInteractionModule, Object {
if (hash == null) return null;
File file = File.new_for_path(Path.build_filename(folder, hash));
if (!file.query_exists()) {
- fetch_and_store_for_jid(account, jid_);
+ fetch_and_store_for_jid.begin(account, jid_);
return null;
} else {
return file;
@@ -169,7 +169,7 @@ public class AvatarManager : StreamInteractionModule, Object {
);
foreach (var entry in get_avatar_hashes(account, Source.USER_AVATARS).entries) {
- on_user_avatar_received(account, entry.key, entry.value);
+ on_user_avatar_received.begin(account, entry.key, entry.value);
}
foreach (var entry in get_avatar_hashes(account, Source.VCARD).entries) {
@@ -179,7 +179,7 @@ public class AvatarManager : StreamInteractionModule, Object {
continue;
}
- on_vcard_avatar_received(account, entry.key, entry.value);
+ on_vcard_avatar_received.begin(account, entry.key, entry.value);
}
}
diff --git a/libdino/src/service/history_sync.vala b/libdino/src/service/history_sync.vala
index 0c0571bb..8ab6d7bb 100644
--- a/libdino/src/service/history_sync.vala
+++ b/libdino/src/service/history_sync.vala
@@ -388,9 +388,6 @@ public class Dino.HistorySync {
page_result = PageResult.NoMoreMessages;
}
- string selection = null;
- string[] selection_args = {};
-
string query_id = query_params.query_id;
string? after_id = query_params.start_id;
diff --git a/libdino/src/service/message_processor.vala b/libdino/src/service/message_processor.vala
index 01687083..baab37ce 100644
--- a/libdino/src/service/message_processor.vala
+++ b/libdino/src/service/message_processor.vala
@@ -167,7 +167,6 @@ public class MessageProcessor : StreamInteractionModule, Object {
new_message.counterpart = counterpart_override ?? (new_message.direction == Entities.Message.DIRECTION_SENT ? message.to : message.from);
new_message.ourpart = new_message.direction == Entities.Message.DIRECTION_SENT ? message.from : message.to;
- XmppStream? stream = stream_interactor.get_stream(account);
Xmpp.MessageArchiveManagement.MessageFlag? mam_message_flag = Xmpp.MessageArchiveManagement.MessageFlag.get_flag(message);
EntityInfo entity_info = stream_interactor.get_module(EntityInfo.IDENTITY);
if (mam_message_flag != null && mam_message_flag.mam_id != null) {