From 69db7c819214ac6c516d86a16ff123bbc2d9c777 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 25 Nov 2017 14:52:32 +0200 Subject: [PATCH] Fix TelegramPuppet.getDisplayName() --- src/telegram-puppet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram-puppet.js b/src/telegram-puppet.js index 8ab6b171..78462c6e 100644 --- a/src/telegram-puppet.js +++ b/src/telegram-puppet.js @@ -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