diff options
author | fiaxh <git@mx.ax.lt> | 2017-03-09 15:34:32 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-03-09 15:45:03 +0100 |
commit | 5fc0435cc1227bf445d06a3931343020faaecd10 (patch) | |
tree | 329041d3b2545fc445e9f175d3d5fff755fd110b /client/src/service/muc_manager.vala | |
parent | b1e6e51c4f79f57f0a01b183ef185408fb22cc36 (diff) | |
download | dino-5fc0435cc1227bf445d06a3931343020faaecd10.tar.gz dino-5fc0435cc1227bf445d06a3931343020faaecd10.zip |
Save unsent messages (acc offline etc) and send later; don't send pgp messages if pgp error
Diffstat (limited to 'client/src/service/muc_manager.vala')
-rw-r--r-- | client/src/service/muc_manager.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/service/muc_manager.vala b/client/src/service/muc_manager.vala index 8f6339a5..be23d391 100644 --- a/client/src/service/muc_manager.vala +++ b/client/src/service/muc_manager.vala @@ -66,7 +66,7 @@ public class MucManager : StreamInteractionModule, Object { public bool is_groupchat(Jid jid, Account account) { Conversation? conversation = ConversationManager.get_instance(stream_interactor).get_conversation(jid, account); - return !jid.is_full() && conversation != null && conversation.type_ == Conversation.TYPE_GROUPCHAT; + return !jid.is_full() && conversation != null && conversation.type_ == Conversation.Type.GROUPCHAT; } public bool is_groupchat_occupant(Jid jid, Account account) { @@ -162,7 +162,7 @@ public class MucManager : StreamInteractionModule, Object { } private void on_pre_message_received(Entities.Message message, Conversation conversation) { - if (conversation.type_ != Conversation.TYPE_GROUPCHAT) return; + if (conversation.type_ != Conversation.Type.GROUPCHAT) return; Core.XmppStream stream = stream_interactor.get_stream(conversation.account); if (stream == null) return; if (Xep.DelayedDelivery.MessageFlag.get_flag(message.stanza) == null) { |