@wireapp/core 39.2.2 → 39.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,7 +33,8 @@ const getRecipientsForConversation = async ({ apiClient, conversationId, userIds
|
|
|
33
33
|
if ((0, util_1.isQualifiedUserClients)(userIds)) {
|
|
34
34
|
return userIds;
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const hasTargetUsers = userIds && Object.keys(userIds).length > 0;
|
|
37
|
+
const recipientIds = hasTargetUsers
|
|
37
38
|
? userIds
|
|
38
39
|
: await (0, getConversationQualifiedMembers_1.getConversationQualifiedMembers)({ apiClient: apiClient, conversationId });
|
|
39
40
|
const allClients = await apiClient.api.user.postListClients({ qualified_users: recipientIds });
|
package/package.json
CHANGED