Offline members (#33)

This commit is supposed to change the showing of members of chat.
Beforehead only online members was show in chat members. Now it's all
members who are shown, including the ones who is offline and the one who
didin't accept the invite
This commit is contained in:
Andrei Voronin 2024-03-28 17:50:34 +03:00 committed by GitHub
parent c0c9e1df14
commit bee7dd0ef4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -262,7 +262,7 @@ public class MucManager : StreamInteractionModule, Object {
public Gee.List<Jid>? get_occupants(Jid jid, Account account) { public Gee.List<Jid>? get_occupants(Jid jid, Account account) {
if (is_groupchat(jid, account)) { if (is_groupchat(jid, account)) {
Gee.List<Jid> ret = new ArrayList<Jid>(Jid.equals_func); Gee.List<Jid> ret = new ArrayList<Jid>(Jid.equals_func);
Gee.List<Jid>? full_jids = stream_interactor.get_module(PresenceManager.IDENTITY).get_full_jids(jid, account); Gee.List<Jid>? full_jids = get_offline_members(jid, account);
if (full_jids != null) { if (full_jids != null) {
ret.add_all(full_jids); ret.add_all(full_jids);
// Remove eventual presence from bare jid // Remove eventual presence from bare jid