Ticket #2903: gajim.fix2903.patch

File gajim.fix2903.patch, 0.6 kB (added by misc, 2 years ago)

patch to send the proper x element if we change nick and not in a room

  • src/common/connection.py

     
    11571157                        return 
    11581158                p = common.xmpp.Presence(to = '%s/%s' % (room_jid, nick)) 
    11591159                p = self.add_sha(p) 
     1160                # if we send the initial presence 
     1161                if not (gajim.interface.msg_win_mgr.has_window(room_jid, self.name) and \ 
     1162                                gajim.gc_connected[self.name][room_jid]): 
     1163                        p.setTag(common.xmpp.NS_MUC + ' x') 
    11601164                self.connection.send(p) 
    11611165 
    11621166        def send_gc_status(self, nick, jid, show, status):