Philipp Hörist pushed to branch unify-control at gajim / gajim

Commits:

2 changed files:

Changes:

  • gajim/gtk/chat_stack.py
    ... ... @@ -578,11 +578,11 @@ def _on_send_message(self) -> None:
    578 578
     
    
    579 579
             encryption = contact.settings.get('encryption')
    
    580 580
             if encryption:
    
    581
    -            self.sendmessage = True
    
    581
    +            self._chat_control.sendmessage = True
    
    582 582
                 app.plugin_manager.extension_point(
    
    583 583
                     'send_message' + encryption,
    
    584 584
                     self._chat_control)
    
    585
    -            if not self.sendmessage:
    
    585
    +            if not self._chat_control.sendmessage:
    
    586 586
                     return
    
    587 587
     
    
    588 588
             client = app.get_client(contact.account)
    

  • gajim/gtk/control.py
    ... ... @@ -99,6 +99,9 @@ def __init__(self) -> None:
    99 99
             # Keeps track of whether the ConversationView is populated
    
    100 100
             self._chat_loaded: bool = False
    
    101 101
     
    
    102
    +        # Used with encryption plugins
    
    103
    +        self.sendmessage = False
    
    104
    +
    
    102 105
             # XEP-0333 Chat Markers
    
    103 106
             self.last_msg_id: Optional[str] = None
    
    104 107