Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
ba67a986 by cal0pteryx at 2026-04-04T18:47:40+02:00
imprv: Activity feed: Make subject brighter
- - - - -
fc51383c by cal0pteryx at 2026-04-04T18:58:36+02:00
fix: Activity feed: Show account indicator only if there are multiple accounts
enabled
- - - - -
3 changed files:
- gajim/common/helpers.py
- gajim/data/gui/activity_list_row.ui
- gajim/gtk/activity_list.py
Changes:
=====================================
gajim/common/helpers.py
=====================================
@@ -565,6 +565,11 @@ def warn_about_plain_connection(account: str,
return any(type_.is_plain and warn for type_ in connection_types)
+def multiple_accounts_active() -> bool:
+ active_accounts_count = len(app.settings.get_active_accounts())
+ return active_accounts_count > 1
+
+
def get_uuid() -> str:
return str(uuid.uuid4())
=====================================
gajim/data/gui/activity_list_row.ui
=====================================
@@ -88,9 +88,6 @@
<property name="ellipsize">end</property>
<property name="single-line-mode">1</property>
<property name="xalign">0</property>
- <style>
- <class name="dimmed"/>
- </style>
</object>
</child>
</object>
=====================================
gajim/gtk/activity_list.py
=====================================
@@ -24,6 +24,7 @@
from gajim.common import ged
from gajim.common.const import AvatarSize
from gajim.common.ged import EventHelper
+from gajim.common.helpers import multiple_accounts_active
from gajim.common.i18n import _
from gajim.common.modules.contacts import BareContact
from gajim.common.modules.contacts import GroupchatContact
@@ -623,7 +624,7 @@ def from_event(cls, event:
events.SubscribePresenceReceived) -> Subscribe:
return cls(
context_id=event.context_id,
account=event.account,
- account_visible=True,
+ account_visible=multiple_accounts_active(),
activity_type=0,
activity_type_icon="lucide-users-symbolic",
avatar=texture,
@@ -653,7 +654,7 @@ def from_event(cls, event:
events.UnsubscribedPresenceReceived) -> Unsubscribed:
return cls(
context_id=event.context_id,
account=event.account,
- account_visible=True,
+ account_visible=multiple_accounts_active(),
activity_type=0,
activity_type_icon="lucide-users-symbolic",
avatar=texture,
@@ -696,7 +697,7 @@ def from_event(cls, event: events.MucInvitation) ->
MucInvitation:
return cls(
context_id=event.context_id,
account=event.account,
- account_visible=True,
+ account_visible=multiple_accounts_active(),
activity_type=0,
activity_type_icon="lucide-users-symbolic",
avatar=texture,
@@ -732,7 +733,7 @@ def from_event(cls, event: events.MucDecline) ->
MucInvitationDeclined:
return cls(
context_id=event.context_id,
account=event.account,
- account_visible=True,
+ account_visible=multiple_accounts_active(),
activity_type=0,
activity_type_icon="lucide-users-symbolic",
avatar=texture,
@@ -752,7 +753,7 @@ def from_event(cls, event: events.TimezoneChanged) ->
TimezoneChanged:
return cls(
context_id=event.context_id,
account=event.account,
- account_visible=True,
+ account_visible=multiple_accounts_active(),
activity_type=0,
activity_type_icon="lucide-info-symbolic",
avatar=texture,
@@ -806,7 +807,7 @@ def from_event(cls, event: events.ReactionUpdated) ->
Reaction:
return cls(
context_id=event.context_id,
account=event.account,
- account_visible=True,
+ account_visible=multiple_accounts_active(),
activity_type=0,
activity_type_icon="lucide-reply-symbolic",
avatar=texture,
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/3ae5ead876cde23c9b5d6cb87e866c267325d5c7...fc51383c1d1db8fd441995dbd11c69377a4a1a7f
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/3ae5ead876cde23c9b5d6cb87e866c267325d5c7...fc51383c1d1db8fd441995dbd11c69377a4a1a7f
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]