Dont use callbacks when sending messages
Using a callback to display a sent message inside the ChatControl means that all messages we send have to be issued from the GUI layer (send_message()) if we want them to display in the ChatControl. This replaces the callback and catches the stanza-message-outgoing event after it was processed by the core. This is easier to read/understand than dealing with callbacks and lets the core issue messages without having to care if a ChatControl is open or not
Showing
- gajim/chat_control.py 35 additions, 25 deletionsgajim/chat_control.py
- gajim/chat_control_base.py 2 additions, 12 deletionsgajim/chat_control_base.py
- gajim/common/connection.py 3 additions, 4 deletionsgajim/common/connection.py
- gajim/common/connection_handlers_events.py 1 addition, 0 deletionsgajim/common/connection_handlers_events.py
- gajim/common/zeroconf/connection_zeroconf.py 4 additions, 2 deletionsgajim/common/zeroconf/connection_zeroconf.py
- gajim/groupchat_control.py 14 additions, 10 deletionsgajim/groupchat_control.py
Loading
Please register or sign in to comment