def on_join_gc(self, action, param): account = param.get_string() invisible_show = app.SHOW_LIST.index('invisible') if app.connections[account].connected == invisible_show: app.interface.raise_dialog('join-while-invisible') return if 'join_gc' in interface.instances[account]: interface.instances[account]['join_gc'].present() else: interface.instances[account]['join_gc'] = \ dialogs.JoinGroupchatWindow(account, None)
def on_join_gc(self, action, param): account = param.get_string() invisible_show = app.SHOW_LIST.index('invisible') if app.connections[account].connected == invisible_show: dialogs.ErrorDialog(_( 'You cannot join a group chat while you are invisible')) return if 'join_gc' in interface.instances[account]: interface.instances[account]['join_gc'].window.present() else: try: interface.instances[account]['join_gc'] = \ dialogs.JoinGroupchatWindow(account) except GajimGeneralException: pass
def join(self, jid, nick): if not nick: nick = self.nick if '@' not in jid: jid = jid + '@' + app.get_server_from_jid(self.room_jid) try: app.interface.instances[self.account]['join_gc'].window.present() except KeyError: try: dialogs.JoinGroupchatWindow(account=self.account, room_jid=jid, nick=nick) except GajimGeneralException: pass
def on_join_group_chat_menuitem_activate(self, widget, room_jid): try: dialogs.JoinGroupchatWindow(room_jid=room_jid) except GajimGeneralException: pass
def on_join_group_chat_menuitem_activate(self, widget, room_jid): dialogs.JoinGroupchatWindow(None, room_jid)