Commit 216a67c1 authored by JC Brand's avatar JC Brand

Only show leave notifications when we're in the MUC

Otherwise when `removeNonMembers` gets called as we reconnect, we get a
long list of erroneous leave notifications.
parent 6bfa69ab
...@@ -1296,7 +1296,8 @@ converse.plugins.add('converse-muc-views', { ...@@ -1296,7 +1296,8 @@ converse.plugins.add('converse-muc-views', {
}, },
onOccupantRemoved (occupant) { onOccupantRemoved (occupant) {
if (occupant.get('show') === 'online') { if (this.model.get('connection_status') === converse.ROOMSTATUS.ENTERED &&
occupant.get('show') === 'online') {
this.showLeaveNotification(occupant); this.showLeaveNotification(occupant);
} }
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment