Exemple #1
0
 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)
Exemple #2
0
 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
Exemple #3
0
    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
Exemple #4
0
 def on_join_group_chat_menuitem_activate(self, widget, room_jid):
     try:
         dialogs.JoinGroupchatWindow(room_jid=room_jid)
     except GajimGeneralException:
         pass
Exemple #5
0
 def on_join_group_chat_menuitem_activate(self, widget, room_jid):
     dialogs.JoinGroupchatWindow(None, room_jid)