fix(PresenceStore): pass user id as extra (#2733)

fix #2731
This commit is contained in:
bdistin
2018-08-11 11:24:30 -05:00
committed by SpaceEEC
parent e2ceea65ba
commit b7e61f21ca

View File

@@ -12,7 +12,7 @@ class PresenceStore extends DataStore {
add(data, cache) {
const existing = this.get(data.user.id);
return existing ? existing.patch(data) : super.add(data, cache);
return existing ? existing.patch(data) : super.add(data, cache, { id: data.user.id });
}
/**