mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-18 19:01:55 +02:00
Merge pull request #174 from matrix-org/dbkr/missed_delayedupdate_roomlist
Change some refreshRoomList() calls to dalyed ones to avoid hammering on catchup.
This commit is contained in:
commit
4bfae230fc
@ -127,7 +127,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
onRoomTimeline: function(ev, room, toStartOfTimeline) {
|
onRoomTimeline: function(ev, room, toStartOfTimeline) {
|
||||||
if (toStartOfTimeline) return;
|
if (toStartOfTimeline) return;
|
||||||
this.refreshRoomList();
|
this._delayedRefreshRoomList();
|
||||||
},
|
},
|
||||||
|
|
||||||
onRoomReceipt: function(receiptEvent, room) {
|
onRoomReceipt: function(receiptEvent, room) {
|
||||||
@ -137,7 +137,7 @@ module.exports = React.createClass({
|
|||||||
for (var i = 0; i < receiptKeys.length; ++i) {
|
for (var i = 0; i < receiptKeys.length; ++i) {
|
||||||
var rcpt = receiptEvent.getContent()[receiptKeys[i]];
|
var rcpt = receiptEvent.getContent()[receiptKeys[i]];
|
||||||
if (rcpt['m.read'] && rcpt['m.read'][MatrixClientPeg.get().credentials.userId]) {
|
if (rcpt['m.read'] && rcpt['m.read'][MatrixClientPeg.get().credentials.userId]) {
|
||||||
this.refreshRoomList();
|
this._delayedRefreshRoomList();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user