Philipp Hörist pushed to branch master at gajim / gajim


Commits:
91243b5a by Philipp Hörist at 2026-03-28T14:34:04+01:00
cfix: Add groupchat name to reaction notifications

- - - - -


1 changed file:

- gajim/gtk/activity_list.py


Changes:

=====================================
gajim/gtk/activity_list.py
=====================================
@@ -772,19 +772,25 @@ def from_event(cls, event: events.ReactionUpdated) -> 
Reaction:
         scale = app.window.get_scale_factor()
         assert event.message is not None
         if event.message.type in (MessageType.GROUPCHAT, MessageType.PM):
+            muc_jid = event.message.remote.jid
+            if event.message.type == MessageType.PM:
+                muc_jid.new_as_bare()
+
+            groupchat_name = get_groupchat_name(client, muc_jid)
+
             assert event.occupant is not None
             texture = app.app.avatar_storage.get_occupant_texture(
                 event.jid, event.occupant, AvatarSize.ROSTER, scale
             )
             nickname = event.occupant.nickname
+            title = _("Reaction from %s (%s)") % (nickname, groupchat_name)
 
         else:
             contact = client.get_module("Contacts").get_contact(event.jid)
             assert isinstance(contact, BareContact)
             texture = contact.get_avatar(AvatarSize.ROSTER, scale)
             nickname = contact.name
-
-        title = _("Reaction from %s") % nickname
+            title = _("Reaction from %s") % nickname
 
         assert event.message is not None
         assert event.emojis is not None



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/91243b5ae209bf355d7ffcf90c954e1545102ac6

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/91243b5ae209bf355d7ffcf90c954e1545102ac6
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to