aboutsummaryrefslogtreecommitdiff
path: root/client/src/service
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-03-09 14:27:39 +0100
committerfiaxh <git@mx.ax.lt>2017-03-09 14:27:39 +0100
commitb1e6e51c4f79f57f0a01b183ef185408fb22cc36 (patch)
treee7b7a3a85169abbed3852b93ee6d7a90a0e17039 /client/src/service
parent811e252de19c2a8735c24b05c7ebae9328168096 (diff)
downloaddino-b1e6e51c4f79f57f0a01b183ef185408fb22cc36.tar.gz
dino-b1e6e51c4f79f57f0a01b183ef185408fb22cc36.zip
Fix MUC join w/o bookmark, with psw; change some event listeners key_press->key_release
fixes #3
Diffstat (limited to 'client/src/service')
-rw-r--r--client/src/service/muc_manager.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/service/muc_manager.vala b/client/src/service/muc_manager.vala
index ead09306..8f6339a5 100644
--- a/client/src/service/muc_manager.vala
+++ b/client/src/service/muc_manager.vala
@@ -26,9 +26,9 @@ public class MucManager : StreamInteractionModule, Object {
MessageManager.get_instance(stream_interactor).pre_message_received.connect(on_pre_message_received);
}
- public void join(Account account, Jid jid, string nick) {
+ public void join(Account account, Jid jid, string nick, string? password = null) {
Core.XmppStream stream = stream_interactor.get_stream(account);
- if (stream != null) Xep.Muc.Module.get_module(stream).enter(stream, jid.bare_jid.to_string(), nick, null, new MucEnterListenerImpl(this, jid, nick, account));
+ if (stream != null) Xep.Muc.Module.get_module(stream).enter(stream, jid.bare_jid.to_string(), nick, password, new MucEnterListenerImpl(this, jid, nick, account));
}
public void part(Account account, Jid jid) {