getConversationByUsers static method
Retrieves a conversation whose participant id's match exactly userIds
.
Implementation
static Future<Conversation> getConversationByUsers(
List<String> userIds,
) async {
MercuryRequest req = await _req();
if (!userIds.contains(currentUser.id)) userIds.add(currentUser.id);
req.conversation = Conversation(users: userIds.map((_) => User(id: _)));
MercuryResponse res = await _client.getConversationByUsers(req);
return res.conversation;
}