Fetch messages after fetching members.
This is done to avoid unnecessary repaints and reflows (caused when a message has already rendered and then an occupant is created and attached to that message, cauring a re-render). Related to #1266
This commit is contained in:
parent
cd6b5143c6
commit
e7178fed31
|
@ -365,7 +365,6 @@ converse.plugins.add('converse-muc', {
|
||||||
this.removeNonMembers();
|
this.removeNonMembers();
|
||||||
await this.refreshRoomFeatures();
|
await this.refreshRoomFeatures();
|
||||||
this.clearMessages(); // XXX: This should be conditional
|
this.clearMessages(); // XXX: This should be conditional
|
||||||
this.fetchMessages();
|
|
||||||
if (!u.isPersistableModel(this)) {
|
if (!u.isPersistableModel(this)) {
|
||||||
// XXX: Happens during tests, nothing to do if this
|
// XXX: Happens during tests, nothing to do if this
|
||||||
// is a hanging chatbox (i.e. not in the collection anymore).
|
// is a hanging chatbox (i.e. not in the collection anymore).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user