From 8664954f274726897638773d92b1d231fc0767d8 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 26 Jul 2019 14:46:23 +0200 Subject: [PATCH] [ContactList] Define contact list by discoveryRoom --- lib/src/Client.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/src/Client.dart b/lib/src/Client.dart index d505f1a..38fdc14 100644 --- a/lib/src/Client.dart +++ b/lib/src/Client.dart @@ -219,15 +219,14 @@ class Client { type: HTTPType.POST, action: "/client/r0/join/$id"); } - /// Loads the contact list for this user excluding the users in - /// the given room of id [exceptRoomID] and the user itself. Currently the contacts are - /// found by discovering the contacts of the famedlyContactDiscovery room, which is + /// Loads the contact list for this user excluding the user itself. + /// Currently the contacts are found by discovering the contacts of + /// the famedlyContactDiscovery room, which is /// defined by the autojoin room feature in Synapse. - Future> loadFamedlyContacts({String exceptRoomID = ""}) async { + Future> loadFamedlyContacts() async { Room contactDiscoveryRoom = await store .getRoomByAlias("#famedlyContactDiscovery:${userID.split(":")[1]}"); List contacts = await contactDiscoveryRoom.requestParticipants(); - return contacts; }