From 46433109a647e4ccd089bd0ab48430e3290b8220 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Sun, 24 Apr 2022 22:11:31 +0200 Subject: [PATCH] Store own user information also when 'my_id' option arrives after user itself --- src/tdlibwrapper.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tdlibwrapper.cpp b/src/tdlibwrapper.cpp index 762be00..e540261 100644 --- a/src/tdlibwrapper.cpp +++ b/src/tdlibwrapper.cpp @@ -1623,7 +1623,10 @@ void TDLibWrapper::handleOptionUpdated(const QString &optionName, const QVariant this->options.insert(optionName, optionValue); emit optionUpdated(optionName, optionValue); if (optionName == "my_id") { - emit ownUserIdFound(optionValue.toString()); + QString ownUserId = optionValue.toString(); + this->userInformation = this->getUserInformation(ownUserId); + emit ownUserIdFound(ownUserId); + } }