fix user status empty

This commit is contained in:
Giuseppe Marino 2022-05-03 12:19:57 +02:00
parent 411f4b15c5
commit be24b3caaf
No known key found for this signature in database
GPG Key ID: 2BC70C5463357449

View File

@ -10547,7 +10547,7 @@ void Client::json_store_permissions(td::JsonObjectScope &object, const td_api::c
void Client::json_store_user_status(td::JsonObjectScope &object, const td_api::UserStatus *userStatus) {
switch (userStatus->get_id()) {
case td_api::userStatusEmpty::ID:
object("user_status", nullptr);
object("user_status", "empty");
break;
case td_api::userStatusLastMonth::ID:
object("user_status", "month");