You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
oops, events not event
This commit is contained in:
@@ -232,7 +232,7 @@ SyncApi.prototype.syncLeftRooms = function() {
|
|||||||
client.store.storeRoom(room);
|
client.store.storeRoom(room);
|
||||||
client.emit("Room", room);
|
client.emit("Room", room);
|
||||||
|
|
||||||
self._processEventForNotifs(room, timelineEvents);
|
self._processEventsForNotifs(room, timelineEvents);
|
||||||
});
|
});
|
||||||
return rooms;
|
return rooms;
|
||||||
});
|
});
|
||||||
@@ -963,7 +963,7 @@ SyncApi.prototype._processSyncResponse = async function(syncToken, data) {
|
|||||||
client.emit("Room", room);
|
client.emit("Room", room);
|
||||||
}
|
}
|
||||||
|
|
||||||
self._processEventForNotifs(room, timelineEvents);
|
self._processEventsForNotifs(room, timelineEvents);
|
||||||
|
|
||||||
async function processRoomEvent(e) {
|
async function processRoomEvent(e) {
|
||||||
client.emit("event", e);
|
client.emit("event", e);
|
||||||
@@ -1001,7 +1001,7 @@ SyncApi.prototype._processSyncResponse = async function(syncToken, data) {
|
|||||||
client.emit("Room", room);
|
client.emit("Room", room);
|
||||||
}
|
}
|
||||||
|
|
||||||
self._processEventForNotifs(room, timelineEvents);
|
self._processEventsForNotifs(room, timelineEvents);
|
||||||
|
|
||||||
stateEvents.forEach(function(e) {
|
stateEvents.forEach(function(e) {
|
||||||
client.emit("event", e);
|
client.emit("event", e);
|
||||||
@@ -1299,7 +1299,7 @@ SyncApi.prototype._processRoomEvents = function(room, stateEventList,
|
|||||||
* @param {MatrixEvent[]} [timelineEventList] A list of timeline events. Lower index
|
* @param {MatrixEvent[]} [timelineEventList] A list of timeline events. Lower index
|
||||||
* is earlier in time. Higher index is later.
|
* is earlier in time. Higher index is later.
|
||||||
*/
|
*/
|
||||||
SyncApi.prototype._processEventForNotifs = function(room, timelineEventList) {
|
SyncApi.prototype._processEventsForNotifs = function(room, timelineEventList) {
|
||||||
// gather our notifications into this._notifEvents
|
// gather our notifications into this._notifEvents
|
||||||
if (this.client.getNotifTimelineSet()) {
|
if (this.client.getNotifTimelineSet()) {
|
||||||
for (let i = 0; i < timelineEventList.length; i++) {
|
for (let i = 0; i < timelineEventList.length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user