|
|
|
@ -255,8 +255,7 @@ export default class AppGroupPermissionsTab extends SliderSuperTabEventable {
@@ -255,8 +255,7 @@ export default class AppGroupPermissionsTab extends SliderSuperTabEventable {
|
|
|
|
|
//dom.lastMessageSpan.innerHTML = 'Can Add Users and Pin Messages';
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
this.listenerSetter.add(rootScope, 'apiUpdate', (update: Update) => { |
|
|
|
|
if(update._ === 'updateChannelParticipant') { |
|
|
|
|
this.listenerSetter.add(rootScope, 'updateChannelParticipant', (update: Update.updateChannelParticipant) => { |
|
|
|
|
const needAdd = update.new_participant?._ === 'channelParticipantBanned' && !update.new_participant.banned_rights.pFlags.view_messages; |
|
|
|
|
const li = list.querySelector(`[data-peer-id="${update.user_id}"]`); |
|
|
|
|
if(needAdd) { |
|
|
|
@ -280,7 +279,6 @@ export default class AppGroupPermissionsTab extends SliderSuperTabEventable {
@@ -280,7 +279,6 @@ export default class AppGroupPermissionsTab extends SliderSuperTabEventable {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
setLength(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const setLength = () => { |
|
|
|
|