Store own user information also when 'my_id' option arrives after user itself
This commit is contained in:
parent
679426abc1
commit
46433109a6
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue