diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2018-09-28 10:50:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 10:50:11 +0300 |
commit | b1c056252e5d3c6cce3ae38e5dbfcf806c9c6b07 (patch) | |
tree | 6c57bd4db5f57d5c582c07a68434d3d421d0449f | |
parent | 8b6e1f59b41ad075678fe1761389345fdb754c84 (diff) | |
parent | 19f5b1e4c0e56ccc4ae68b26e1121061a10430f6 (diff) |
Merge pull request #121 from nextcloud/fix/telegram-chat-id-caching
Fix caching of telegram chat id
-rw-r--r-- | lib/Service/Gateway/Telegram/Gateway.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |