Fix bugs and #12

This commit is contained in:
Tulir Asokan
2017-11-25 16:01:27 +02:00
parent ffd04e00c2
commit caaffde231
4 changed files with 74 additions and 52 deletions
+1 -2
View File
@@ -179,8 +179,7 @@ class TelegramPuppet {
getDisplayName() {
if (this.data.firstName || this.data.lastName) {
return [this.data.firstName, this.data.lastName].filter(s => !!s)
.join(" ")
return [this.data.firstName, this.data.lastName].filter(s => !!s).join(" ")
} else if (this.data.username) {
return this.data.username
}