Fix compiler warnings
This commit is contained in:
parent
c7ff1d6bea
commit
6c5ec41beb
|
@ -82,7 +82,6 @@ namespace Dino {
|
|||
return (yield get_call_resources(conversation.account, conversation.counterpart)).size > 0 || has_jmi_resources(conversation.counterpart);
|
||||
} else {
|
||||
bool is_private = stream_interactor.get_module(MucManager.IDENTITY).is_private_room(conversation.account, conversation.counterpart);
|
||||
EntityInfo entity_info = stream_interactor.get_module(EntityInfo.IDENTITY);
|
||||
return is_private && can_initiate_groupcall(conversation.account);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -320,7 +320,7 @@ public class Dino.HistorySync {
|
|||
latest_time, latest_id
|
||||
);
|
||||
}
|
||||
PageRequestResult page_result = yield fetch_query(account, query_params, range[db.mam_catchup.id]);
|
||||
yield fetch_query(account, query_params, range[db.mam_catchup.id]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -115,8 +115,6 @@ public class JingleFileProvider : FileProvider, Object {
|
|||
}
|
||||
|
||||
private void on_account_added(Account account) {
|
||||
XmppStream stream = stream_interactor.get_stream(account);
|
||||
|
||||
stream_interactor.module_manager.get_module(account, Xmpp.Xep.JingleFileTransfer.Module.IDENTITY).file_incoming.connect((stream, jingle_file_transfer) => {
|
||||
Conversation? conversation = stream_interactor.get_module(ConversationManager.IDENTITY).get_conversation(jingle_file_transfer.peer.bare_jid, account);
|
||||
if (conversation == null) return;
|
||||
|
|
|
@ -128,7 +128,7 @@ public class MessageProcessor : StreamInteractionModule, Object {
|
|||
// If it's a message from MAM, it's going to be processed by HistorySync which calls run_pipeline_announce later.
|
||||
if (history_sync.process(account, message_stanza)) return;
|
||||
|
||||
run_pipeline_announce(account, message_stanza);
|
||||
run_pipeline_announce.begin(account, message_stanza);
|
||||
}
|
||||
|
||||
public async void run_pipeline_announce(Account account, Xmpp.MessageStanza message_stanza) {
|
||||
|
|
|
@ -606,7 +606,7 @@ public class MucManager : StreamInteractionModule, Object {
|
|||
|
||||
private void on_build_message_stanza(Entities.Message message, Xmpp.MessageStanza message_stanza, Conversation conversation) {
|
||||
if (conversation.type_ == Conversation.Type.GROUPCHAT_PM) {
|
||||
Xmpp.Xep.Muc.add_muc_pm_message_stanza_x_node(message_stanza);
|
||||
Xmpp.Xep.Muc.add_muc_pm_message_stanza_x_node(message_stanza);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -374,9 +374,7 @@ public class ConversationView : Box, Plugins.ConversationItemCollection, Plugins
|
|||
|
||||
if (lower_item != null) {
|
||||
if (can_merge(item, lower_item)) {
|
||||
ConversationItemSkeleton lower_skeleton = item_item_skeletons[lower_item];
|
||||
item_skeleton.show_skeleton = false;
|
||||
lower_skeleton.last_group_item = false;
|
||||
} else {
|
||||
item_skeleton.show_skeleton = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue