Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
961f6eda by wurstsalat at 2021-09-04T00:49:42+02:00
AdhocMUC: Fixes
- - - - -
2 changed files:
- gajim/gtk/adhoc_muc.py
- gajim/gtk/controls/groupchat.py
Changes:
=====================================
gajim/gtk/adhoc_muc.py
=====================================
@@ -31,7 +31,7 @@
log = logging.getLogger('gajim.gui.adhoc_muc')
-class AdhocMUC(Gtk.ApplicationWindow):
+class AdhocMUC:
# Keep a reference on windows so garbage collector don't restroy them
instances = [] # type: List[AdhocMUC]
@@ -141,12 +141,14 @@ def on_invite_button_clicked(self, _widget):
'muc#roomconfig_membersonly': True,
'muc#roomconfig_whois': 'anyone',
'muc#roomconfig_changesubject': True,
+ 'muc#roomconfig_persistentroom': False,
# Ejabberd options
'public_list': False,
}
app.interface.create_groupchat(self.account, room_jid, config)
+ app.window.select_chat(self.account, room_jid)
self.window.destroy()
def on_cancel_button_clicked(self, _widget):
=====================================
gajim/gtk/controls/groupchat.py
=====================================
@@ -649,6 +649,10 @@ def on_approve():
callback=on_approve)],
modal=False).show()
+ def _on_message_received(self, event):
+ if not event.msgtxt:
+ return
+
def _on_mam_message_received(self, event):
if not event.properties.type.is_groupchat:
return
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/961f6eda1627833403ac622f536926436ef91be7
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/961f6eda1627833403ac622f536926436ef91be7
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits