actually pass the room id

This commit is contained in:
Bruno Windels 2020-08-31 16:06:31 +02:00
parent 78c3157a5f
commit fef6586e5b

View file

@ -244,7 +244,7 @@ export class DeviceTracker {
// we check which ones have the roomId for the room we're looking at. // we check which ones have the roomId for the room we're looking at.
// So, this will also contain non-joined memberships // So, this will also contain non-joined memberships
const userIds = await txn.roomMembers.getAllUserIds(); const userIds = await txn.roomMembers.getAllUserIds(roomId);
const allMemberIdentities = await Promise.all(userIds.map(userId => txn.userIdentities.get(userId))); const allMemberIdentities = await Promise.all(userIds.map(userId => txn.userIdentities.get(userId)));
identities = allMemberIdentities.filter(identity => { identities = allMemberIdentities.filter(identity => {
// identity will be missing for any userIds that don't have // identity will be missing for any userIds that don't have