Fix TelegramPuppet.getDisplayName()

This commit is contained in:
Tulir Asokan
2017-11-25 14:52:32 +02:00
parent 03c9eb44f9
commit 69db7c8192
+1 -1
View File
@@ -181,7 +181,7 @@ class TelegramPuppet {
getDisplayName() {
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(" ")
} else if (this.data.username) {
return this.data.username