diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2018-12-04 10:21:24 +0100 |
---|---|---|
committer | fiaxh <fiaxh@users.noreply.github.com> | 2018-12-28 13:42:58 +0100 |
commit | d8e0ab406cdad73edf79123e84d0013b96a3963a (patch) | |
tree | 4de13499d19113f96b5720a0554f95a3feb707b7 /xmpp-vala/src/module | |
parent | 965f4da75ae5a5b308191bd61890b4277504f5b1 (diff) | |
download | dino-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 'xmpp-vala/src/module')
-rw-r--r-- | xmpp-vala/src/module/xep/0045_muc/module.vala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0045_muc/module.vala b/xmpp-vala/src/module/xep/0045_muc/module.vala index 955ea89b..7b136d8c 100644 --- a/xmpp-vala/src/module/xep/0045_muc/module.vala +++ b/xmpp-vala/src/module/xep/0045_muc/module.vala @@ -381,6 +381,7 @@ public class Module : XmppStreamModule { if (jid_ != null && affiliation_ != null) { stream.get_flag(Flag.IDENTITY).set_offline_member(iq.from, jid_, parse_affiliation(affiliation_)); ret_jids.add(jid_); + received_occupant_jid(stream, iq.from, jid_); } } if (listener != null) listener(stream, ret_jids); |