aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/muc_manager.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-10-22 02:43:04 +0200
committerfiaxh <git@mx.ax.lt>2017-10-22 18:26:31 +0200
commit555187deb9a5ce1af94d241868de6babdd6166b6 (patch)
tree0c2e238b06ec458e9c05f578ea6d495cf61c23ed /libdino/src/service/muc_manager.vala
parente49fc134ddf4c1b4e22603b60ea44f59eec496a5 (diff)
downloaddino-555187deb9a5ce1af94d241868de6babdd6166b6.tar.gz
dino-555187deb9a5ce1af94d241868de6babdd6166b6.zip
Offline messages for MUCs
fixes #187
Diffstat (limited to 'libdino/src/service/muc_manager.vala')
-rw-r--r--libdino/src/service/muc_manager.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdino/src/service/muc_manager.vala b/libdino/src/service/muc_manager.vala
index 51b3822e..f9a67e7a 100644
--- a/libdino/src/service/muc_manager.vala
+++ b/libdino/src/service/muc_manager.vala
@@ -207,8 +207,10 @@ public class MucManager : StreamInteractionModule, Object {
}
private void on_account_added(Account account) {
- stream_interactor.module_manager.get_module(account, Xep.Muc.Module.IDENTITY).room_entered.connect( (stream, jid, nick) => {
- joined(account, new Jid(jid), nick);
+ stream_interactor.module_manager.get_module(account, Xep.Muc.Module.IDENTITY).room_entered.connect( (stream, jid_string, nick) => {
+ Jid jid = new Jid(jid_string);
+ joined(account, jid, nick);
+ stream_interactor.get_module(MessageProcessor.IDENTITY).send_unsent_messages(account, jid);
});
stream_interactor.module_manager.get_module(account, Xep.Muc.Module.IDENTITY).room_enter_error.connect( (stream, jid, error) => {
enter_errors[new Jid(jid)] = error;