fix(chat): support display name for deleted users

This commit is contained in:
teidesu 2021-04-25 14:24:28 +03:00
parent d26a2965d6
commit 68ce10d292

View file

@ -229,7 +229,7 @@ export class Chat {
if (this.peer._ === 'user') {
if (this.peer.lastName)
return this.peer.firstName + ' ' + this.peer.lastName
return this.peer.firstName!
return this.peer.firstName ?? 'Deleted Account'
} else {
return this.peer.title
}