mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Change some refreshRoomList() calls to dalyed ones to avoid hammering on catchup.
Fixes https://github.com/vector-im/vector-web/issues/544
This commit is contained in:
parent
4b13d71bb4
commit
e915d7e215
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ module.exports = React.createClass({
|
|||
|
||||
onRoomTimeline: function(ev, room, toStartOfTimeline) {
|
||||
if (toStartOfTimeline) return;
|
||||
this.refreshRoomList();
|
||||
this._delayedRefreshRoomList();
|
||||
},
|
||||
|
||||
onRoomReceipt: function(receiptEvent, room) {
|
||||
|
@ -137,7 +137,7 @@ module.exports = React.createClass({
|
|||
for (var i = 0; i < receiptKeys.length; ++i) {
|
||||
var rcpt = receiptEvent.getContent()[receiptKeys[i]];
|
||||
if (rcpt['m.read'] && rcpt['m.read'][MatrixClientPeg.get().credentials.userId]) {
|
||||
this.refreshRoomList();
|
||||
this._delayedRefreshRoomList();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue