aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_titlebar
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2018-12-04 10:21:24 +0100
committerfiaxh <fiaxh@users.noreply.github.com>2018-12-28 13:42:58 +0100
commitd8e0ab406cdad73edf79123e84d0013b96a3963a (patch)
tree4de13499d19113f96b5720a0554f95a3feb707b7 /main/src/ui/conversation_titlebar
parent965f4da75ae5a5b308191bd61890b4277504f5b1 (diff)
downloaddino-d8e0ab406cdad73edf79123e84d0013b96a3963a.tar.gz
dino-d8e0ab406cdad73edf79123e84d0013b96a3963a.zip
display groups w/o name by list of members
For members-only, non-anonymous groups that do not have a name set we now show an automatically generated name that is generated from the list of members (offline, and online). Only the first name (before the first space) is used to keep the generated name short. The term *private room* is coined as a short hand for members only&non-anon group chats. This commit also uses the offline members list instead of the online member list to generate avatar tiles (also only in members-only, non-anon groups.)
Diffstat (limited to 'main/src/ui/conversation_titlebar')
-rw-r--r--main/src/ui/conversation_titlebar/view.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/ui/conversation_titlebar/view.vala b/main/src/ui/conversation_titlebar/view.vala
index 7ee47311..7ced9830 100644
--- a/main/src/ui/conversation_titlebar/view.vala
+++ b/main/src/ui/conversation_titlebar/view.vala
@@ -42,6 +42,12 @@ public class ConversationTitlebar : Gtk.HeaderBar {
}
});
+ stream_interactor.get_module(MucManager.IDENTITY).private_room_occupant_updated.connect((account, room, occupant) => {
+ if (conversation != null && conversation.counterpart.equals_bare(room.bare_jid) && conversation.account.equals(account)) {
+ update_title();
+ }
+ });
+
stream_interactor.get_module(MucManager.IDENTITY).subject_set.connect((account, jid, subject) => {
if (conversation != null && conversation.counterpart.equals_bare(jid) && conversation.account.equals(account)) {
update_subtitle(subject);