fix(core): correctly handle banning of non-members in ChatMemberUpdate
This commit is contained in:
parent
cc4cf35611
commit
1c5815ecf0
1 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,8 @@ export class ChatMemberUpdate {
|
|||
const actorId = this.raw.actorId
|
||||
|
||||
if (!old && cur) {
|
||||
// join or added
|
||||
// joined, added or kicked
|
||||
if (cur._ === 'channelParticipantBanned') return 'kicked'
|
||||
return actorId === curId ? 'joined' : 'added'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue