From 19f5b1e4c0e56ccc4ae68b26e1121061a10430f6 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 26 Sep 2018 08:31:25 +0200 Subject: Fix caching of telegram chat id Signed-off-by: Christoph Wurst --- lib/Service/Gateway/Telegram/Gateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/Gateway/Telegram/Gateway.php b/lib/Service/Gateway/Telegram/Gateway.php index d8b355c..e025fa1 100644 --- a/lib/Service/Gateway/Telegram/Gateway.php +++ b/lib/Service/Gateway/Telegram/Gateway.php @@ -90,7 +90,7 @@ class Gateway implements IGateway { // TODO: handle missing `/start` message and `$update` null values $chatId = $update->message->chat->id; - $this->config->setUserValue($user->getUID(), 'twofactor_gateway', 'chat_id', $chatId); + $this->config->setUserValue($user->getUID(), 'twofactor_gateway', 'telegram_chat_id', $chatId); return (int)$chatId; } -- cgit v1.2.3