Skip to content

Commit e731350

Browse files
committed
members: Fix profileData change detection
Signed-off-by: Lewis Marshall <[email protected]>
1 parent 7fafb42 commit e731350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Members.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Members extends EventEmitter<MemberEventsMap> {
5252
// Emit profileData updates only if they are different then the last held update.
5353
// A locationUpdate is handled in Locations.
5454
if (message.data.profileUpdate.id && this.lastMemberUpdate[connectionId] !== message.data.profileUpdate.id) {
55-
this.lastMemberUpdate[message.connectionId] = message.data.locationUpdate.id;
55+
this.lastMemberUpdate[message.connectionId] = message.data.profileUpdate.id;
5656
this.emit('update', memberUpdate);
5757
}
5858
}

0 commit comments

Comments
 (0)