Changeset 10355

Show
Ignore:
Timestamp:
08/30/08 04:50:10 (3 months ago)
Author:
bct
Message:

fix GPG mysteriously turning on when you open a chat window

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/chat_control.py

    r10354 r10355  
    18441844                                        ChatControlBase.print_conversation_line(self, msg, 'status', '', 
    18451845                                                tim) 
    1846                                         self._toggle_gpg() 
     1846                                        # turn on OpenPGP if this was in fact a XEP-0027 encrypted message 
     1847                                        if encrypted == 'xep27': 
     1848                                                self._toggle_gpg() 
    18471849                                elif not encrypted and self.gpg_is_active: 
    18481850                                        msg = _('The following message was NOT encrypted') 
  • trunk/src/common/connection_handlers.py

    r10354 r10355  
    17421742 
    17431743                if xep_200_encrypted: 
    1744                         encrypted = True 
     1744                        encrypted = 'xep200' 
    17451745 
    17461746                        try: 
     
    17821782                                # \x00 chars are not allowed in C (so in GTK) 
    17831783                                msgtxt = decmsg.replace('\x00', '') 
    1784                                 encrypted = True 
     1784                                encrypted = 'xep27' 
    17851785                if mtype == 'error': 
    17861786                        self.dispatch_error_message(msg, msgtxt, session, frm, tim)