tdlight/td/telegram/Version.h

89 lines
2.1 KiB
C
Raw Normal View History

//
2022-12-31 22:28:08 +01:00
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
//
// 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 {
2023-09-28 15:13:36 +02:00
constexpr int32 MTPROTO_LAYER = 166;
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
2022-04-15 14:30:51 +02:00
AddAudioFlags,
2022-05-08 22:54:04 +02:00
UseServerForwardAsCopy,
AddMainDialogListPosition,
2022-05-25 18:24:40 +02:00
AddVoiceNoteFlags,
2022-06-03 15:33:49 +02:00
AddMessageStickerFlags, // 40
2022-06-17 18:16:17 +02:00
AddStickerSetListFlags,
2022-09-16 16:08:58 +02:00
AddInputInvoiceFlags,
2022-10-20 19:35:00 +02:00
AddVideoNoteFlags,
2022-11-29 12:02:05 +01:00
AddMessageChatSetTtlFlags,
2023-01-06 11:43:46 +01:00
AddMessageMediaSpoiler, // 45
MakeParticipantFlags64Bit,
2023-02-21 12:58:52 +01:00
AddDocumentFlags,
2023-05-03 19:22:16 +02:00
AddUserFlags2,
Next
};
enum class DbVersion : int32 {
2023-07-18 17:20:43 +02:00
CreateDialogDb = 3,
AddMessageDbMediaIndex,
AddMessageDb30MediaIndex,
AddMessageDbFts,
AddMessagesCallIndex,
FixFileRemoteLocationKeyBug,
AddNotificationsSupport,
AddFolders,
AddScheduledMessages,
StorePinnedDialogsInBinlog,
AddMessageThreadSupport,
2022-11-10 17:46:17 +01:00
AddMessageThreadDatabase,
Next
};
inline constexpr int32 current_db_version() {
return static_cast<int32>(DbVersion::Next) - 1;
}
} // namespace td