2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fix build with GCC.

This commit is contained in:
John Preston
2022-06-15 23:25:51 +04:00
parent 0434e520fd
commit 145d112982
3 changed files with 4 additions and 2 deletions

View File

@@ -106,6 +106,9 @@ void UserData::setPhone(const QString &newPhone) {
void UserData::setBotInfoVersion(int version) {
if (version < 0) {
// We don't support bots becoming non-bots.
if (botInfo) {
botInfo->version = -1;
}
} else if (!botInfo) {
botInfo = std::make_unique<BotInfo>();
botInfo->version = version;