tdlight/td/telegram/Version.h

75 lines
1.7 KiB
C
Raw Normal View History

//
2022-01-01 01:35:39 +01:00
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
2021-09-08 23:05:59 +02:00
#include "td/utils/common.h"
namespace td {
2022-02-18 13:40:34 +01:00
constexpr int32 MTPROTO_LAYER = 139;
enum class Version : int32 {
Initial, // 0
StoreFileId,
AddKeyHashToSecretChat,
AddDurationToAnimation,
FixStoreGameWithoutAnimation,
AddAccessHashToSecretChat, // 5
StoreFileOwnerId,
StoreFileEncryptionKey,
NetStatsCountDuration,
FixWebPageInstantViewDatabase,
FixMinUsers, // 10
FixPageBlockAudioEmptyFile,
AddMessageInvoiceProviderData,
AddCaptionEntities,
AddVenueType,
AddTermsOfService, // 15
AddContactVcard,
AddMessageUnsupportedVersion,
SupportInstantView2_0,
AddNotificationGroupInfoMaxRemovedMessageId,
SupportMinithumbnails, // 20
AddVideoCallsSupport,
AddPhotoSizeSource,
AddFolders,
SupportPolls2_0,
AddDiceEmoji, // 25
AddAnimationStickers,
AddDialogPhotoHasAnimation,
AddPhotoProgressiveSizes,
AddLiveLocationHeading,
AddLiveLocationProximityAlertDistance, // 30
SupportBannedChannels,
RemovePhotoVolumeAndLocalId,
2021-09-03 11:27:59 +02:00
Support64BitIds,
2021-10-09 14:04:17 +02:00
AddInviteLinksRequiringApproval,
2021-11-10 15:14:00 +01:00
AddKeyboardButtonFlags, // 35
Next
};
enum class DbVersion : int32 {
DialogDbCreated = 3,
MessagesDbMediaIndex,
MessagesDb30MediaIndex,
MessagesDbFts,
MessagesCallIndex,
FixFileRemoteLocationKeyBug,
AddNotificationsSupport,
AddFolders,
AddScheduledMessages,
StorePinnedDialogsInBinlog,
AddMessageThreadSupport,
Next
};
inline constexpr int32 current_db_version() {
return static_cast<int32>(DbVersion::Next) - 1;
}
} // namespace td