Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
4e76819e by wurstsalat at 2022-06-08T18:15:49+02:00
fix: Status messages: Check for correct setting

Fixes #10953

- - - - -
f4e7a75b by wurstsalat at 2022-06-08T18:16:22+02:00
fix: MucJoinLeft: Align timestamp correctly

- - - - -


3 changed files:

- gajim/gtk/controls/groupchat.py
- gajim/gtk/conversation/rows/muc_join_left.py
- gajim/gtk/conversation/view.py


Changes:

=====================================
gajim/gtk/controls/groupchat.py
=====================================
@@ -846,11 +846,13 @@ def _on_user_nickname_changed(self,
         self.add_info_message(message)
 
     def _on_user_status_show_changed(self,
-                                     _contact: GroupchatContact,
+                                     contact: GroupchatContact,
                                      _signal_name: str,
                                      user_contact: GroupchatParticipant,
                                      properties: MessageProperties
                                      ) -> None:
+        if not contact.settings.get('print_status'):
+            return
 
         self.conversation_view.add_user_status(user_contact.name,
                                                user_contact.show.value,


=====================================
gajim/gtk/conversation/rows/muc_join_left.py
=====================================
@@ -61,7 +61,7 @@ def __init__(self, type_: str, account: str, nick: str,
 
         timestamp_widget = self.create_timestamp_widget(self.timestamp)
         timestamp_widget.set_halign(Gtk.Align.START)
-        timestamp_widget.set_valign(Gtk.Align.END)
+        timestamp_widget.set_valign(Gtk.Align.FILL)
         self.grid.attach(timestamp_widget, 3, 0, 1, 1)
 
         self.show_all()


=====================================
gajim/gtk/conversation/view.py
=====================================
@@ -201,8 +201,6 @@ def add_muc_user_joined(self, nick: str) -> None:
         self._insert_message(join_left)
 
     def add_user_status(self, name: str, show: str, status: str) -> None:
-        if not self._contact.settings.get('print_status'):
-            return
         user_status = UserStatus(self._account, name, show, status)
         self._insert_message(user_status)
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/d6f67e1440b5fde22abe058ae47d3fa690f2e2b2...f4e7a75b3749ed49994b922f0ede0732b9c6c38f

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/d6f67e1440b5fde22abe058ae47d3fa690f2e2b2...f4e7a75b3749ed49994b922f0ede0732b9c6c38f
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to