chore: fill holes in ChatType enum (#14257)

* chore: fill holes in ChatType enum
* chore: fix Spacing warning
This commit is contained in:
Igor Sirotin 2024-04-03 14:47:41 +01:00 committed by GitHub
parent d86be3a970
commit 89408adc00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

View File

@ -55,7 +55,11 @@ switch("warning", "UnreachableElse:off")
# Those are popular to miss in our app, and quickly make build log unreadable, so we want to prevent them # Those are popular to miss in our app, and quickly make build log unreadable, so we want to prevent them
switch("warningAsError", "UseBase:on") switch("warningAsError", "UseBase:on")
switch("warningAsError", "UnusedImport:on") switch("warningAsError", "UnusedImport:on")
switch("warningAsError", "Deprecated:on")
switch("warningAsError", "HoleEnumConv:on")
# Workaround for https://github.com/nim-lang/Nim/issues/23429 # Workaround for https://github.com/nim-lang/Nim/issues/23429
switch("warning", "UseBase:on") switch("warning", "UseBase:on")
switch("warning", "UnusedImport:on") switch("warning", "UnusedImport:on")
switch("warning", "Deprecated:on")
switch("warning", "HoleEnumConv:on")

View File

@ -13,6 +13,7 @@ type ChatType* {.pure.}= enum
Public = 2, Public = 2,
PrivateGroupChat = 3, PrivateGroupChat = 3,
Profile = 4, Profile = 4,
Timeline {.deprecated.} = 5,
CommunityChat = 6 CommunityChat = 6
type ChannelGroupType* {.pure.}= enum type ChannelGroupType* {.pure.}= enum