tdlight/td/telegram/Version.h

84 lines
2.0 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-11-25 12:57:21 +01:00
constexpr int32 MTPROTO_LAYER = 150;
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,
Next
};
enum class DbVersion : int32 {
DialogDbCreated = 3,
2022-11-09 18:35:22 +01:00
MessageDbMediaIndex,
MessageDb30MediaIndex,
MessageDbFts,
MessagesCallIndex,
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