Fix TelegramPuppet.getDisplayName()
This commit is contained in:
@@ -181,7 +181,7 @@ class TelegramPuppet {
|
|||||||
|
|
||||||
getDisplayName() {
|
getDisplayName() {
|
||||||
if (this.data.firstName || this.data.lastName) {
|
if (this.data.firstName || this.data.lastName) {
|
||||||
return [this.firstName, this.lastName].filter(s => !!s)
|
return [this.data.firstName, this.data.lastName].filter(s => !!s)
|
||||||
.join(" ")
|
.join(" ")
|
||||||
} else if (this.data.username) {
|
} else if (this.data.username) {
|
||||||
return this.data.username
|
return this.data.username
|
||||||
|
|||||||
Reference in New Issue
Block a user