Allow hiding debug messages and fix some portal create bugs

This commit is contained in:
Tulir Asokan
2018-01-08 01:26:20 +02:00
parent 406dfe7018
commit 9525fa7776
7 changed files with 134 additions and 39 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ class TelegramUser {
async updateInfo(telegramPOV, user, { updateAvatar = false } = {}) {
if (!user) {
console.log("updateInfo called without user data")
this.app.warn("updateInfo called without user data")
user = await telegramPOV.client("users.getFullUser", {
id: this.toPeer(telegramPOV).toInputObject(),
})