зеркало из https://github.com/nextcloud/spreed.git
Set the new room for ParticipantCollection when the active room changes
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Родитель
c516ddf513
Коммит
c35a30475d
|
@ -353,6 +353,12 @@
|
|||
el: 'ul#participantWithList',
|
||||
collection: this._participants
|
||||
});
|
||||
|
||||
this._participants.listenTo(this._rooms, 'change:active', function(model, active) {
|
||||
if (active) {
|
||||
this.setRoom(model);
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* @param {string} token
|
||||
|
|
|
@ -184,8 +184,6 @@
|
|||
|
||||
$sidebar.find('.room-name').text(this.model.get('displayName'));
|
||||
|
||||
OCA.SpreedMe.app._participants.setRoom(this.model);
|
||||
|
||||
if (!$content.hasClass('with-app-sidebar')) {
|
||||
$content.addClass('with-app-sidebar');
|
||||
$sidebar.removeClass('hidden');
|
||||
|
|
Загрузка…
Ссылка в новой задаче