You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
oops, that map should be a forEach
This commit is contained in:
@@ -310,7 +310,7 @@ SyncApi.prototype._peekPoll = function(roomId, token) {
|
||||
|
||||
res.chunk.filter(function(e) {
|
||||
return e.type === "m.presence";
|
||||
}).map(self.client.getEventMapper()).map(function(presenceEvent) {
|
||||
}).map(self.client.getEventMapper()).forEach(function(presenceEvent) {
|
||||
var user = self.client.store.getUser(presenceEvent.getContent().user_id);
|
||||
if (user) {
|
||||
user.setPresenceEvent(presenceEvent);
|
||||
|
||||
Reference in New Issue
Block a user