aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2023-09-18 00:58:15 +0200
committerMiquel Lionel <lionel@les-miquelots.net>2023-10-07 22:23:06 +0200
commit302e954c99c71d670201828c6746dfaa40276d6d (patch)
treed73a52b29c63e5acf4037935e7e46b06e73616a2
parent2fba24ccae13e832bd38ff9c7fea71c1a802603d (diff)
downloaddino-302e954c99c71d670201828c6746dfaa40276d6d.tar.gz
dino-302e954c99c71d670201828c6746dfaa40276d6d.zip
Add indicator in hovering tooltip about account used in conversation
- adresses #1387 and #383
-rw-r--r--main/src/ui/conversation_selector/conversation_selector_row.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/ui/conversation_selector/conversation_selector_row.vala b/main/src/ui/conversation_selector/conversation_selector_row.vala
index 1bcf6962..a76aee95 100644
--- a/main/src/ui/conversation_selector/conversation_selector_row.vala
+++ b/main/src/ui/conversation_selector/conversation_selector_row.vala
@@ -79,7 +79,7 @@ public class ConversationSelectorRow : ListBoxRow {
break;
case Conversation.Type.GROUPCHAT:
has_tooltip = Util.use_tooltips();
- set_tooltip_text(Util.string_if_tooltips_active(conversation.counterpart.bare_jid.to_string()));
+ set_tooltip_text(Util.string_if_tooltips_active(conversation.counterpart.bare_jid.to_string() + _("\n\nConversation via your account ") + conversation.account.bare_jid.to_string()));
break;
case Conversation.Type.GROUPCHAT_PM:
break;
@@ -291,7 +291,10 @@ public class ConversationSelectorRow : ListBoxRow {
Label label = new Label(conversation.counterpart.to_string()) { valign=Align.START, xalign=0 };
label.attributes = new AttrList();
label.attributes.insert(attr_weight_new(Weight.BOLD));
+ Label via_x_account_str = new Label("") { use_markup=true, hexpand=true, xalign=0 };
+ via_x_account_str.set_markup(_("Conversation via your account ") + "<i><b>" + conversation.account.bare_jid.to_string() + "</b></i>");
+ grid.attach(via_x_account_str, 0, 3, 2, 2);
grid.attach(label, 0, 0, 2, 1);
Gee.List<Jid>? full_jids = stream_interactor.get_module(PresenceManager.IDENTITY).get_full_jids(conversation.counterpart, conversation.account);