Store own user information also when 'my_id' option arrives after user itself

This commit is contained in:
Sebastian Wolf 2022-04-24 22:11:31 +02:00
parent 679426abc1
commit 46433109a6
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

@ -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);
}
}