Show
Ignore:
Timestamp:
12/06/06 17:19:47 (2 years ago)
Author:
asterix
Message:

detect error while encrypting message, block sending it, and display error message. fixes #2712

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/message_control.py

    r7497 r7612  
    118118        chatstate = None, msg_id = None, composing_jep = None, resource = None, 
    119119        user_nick = None): 
    120                 '''Send the given message to the active tab''' 
     120                '''Send the given message to the active tab. Doesn't return None if error 
     121                ''' 
    121122                jid = self.contact.jid 
    122123                # Send and update history 
    123                 gajim.connections[self.account].send_message(jid, message, keyID, 
     124                return gajim.connections[self.account].send_message(jid, message, keyID, 
    124125                        type = type, chatstate = chatstate, msg_id = msg_id, 
    125126                        composing_jep = composing_jep, resource = self.resource,