mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
[WIP] Topics
This commit is contained in:
parent
2d6dc9ac13
commit
9b35b9630c
@ -107,12 +107,13 @@ public struct AdminLogEventsFlags: OptionSet {
|
||||
public static let calls = AdminLogEventsFlags(rawValue: 1 << 14)
|
||||
public static let invites = AdminLogEventsFlags(rawValue: 1 << 15)
|
||||
public static let sendMessages = AdminLogEventsFlags(rawValue: 1 << 16)
|
||||
public static let forums = AdminLogEventsFlags(rawValue: 1 << 17)
|
||||
|
||||
public static var all: AdminLogEventsFlags {
|
||||
return [.join, .leave, .invite, .ban, .unban, .kick, .unkick, .promote, .demote, .info, .settings, .sendMessages, .pinnedMessages, .editMessages, .deleteMessages, .calls, .invites]
|
||||
return [.join, .leave, .invite, .ban, .unban, .kick, .unkick, .promote, .demote, .info, .settings, .sendMessages, .pinnedMessages, .editMessages, .deleteMessages, .calls, .invites, .forums]
|
||||
}
|
||||
public static var flags: AdminLogEventsFlags {
|
||||
return [.join, .leave, .invite, .ban, .unban, .kick, .unkick, .promote, .demote, .info, .settings, .sendMessages, .pinnedMessages, .editMessages, .deleteMessages, .calls, .invites]
|
||||
return [.join, .leave, .invite, .ban, .unban, .kick, .unkick, .promote, .demote, .info, .settings, .sendMessages, .pinnedMessages, .editMessages, .deleteMessages, .calls, .invites, .forums]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6307,7 +6307,7 @@ public final class EmojiPagerContentComponent: Component {
|
||||
|
||||
var existingIds = Set<MediaId>()
|
||||
|
||||
for file in iconStatusEmoji.prefix(7) {
|
||||
for file in iconStatusEmoji {
|
||||
if existingIds.contains(file.fileId) {
|
||||
continue
|
||||
}
|
||||
|
@ -258,5 +258,7 @@ public func navigateToForumThreadImpl(context: AccountContext, peerId: EnginePee
|
||||
}
|
||||
|
||||
public func navigateToForumChannelImpl(context: AccountContext, peerId: EnginePeer.Id, navigationController: NavigationController) {
|
||||
navigationController.pushViewController(ChatListControllerImpl(context: context, location: .forum(peerId: peerId), controlsHistoryPreload: false, enableDebugActions: false))
|
||||
let controller = ChatListControllerImpl(context: context, location: .forum(peerId: peerId), controlsHistoryPreload: false, enableDebugActions: false)
|
||||
controller.navigationPresentation = .master
|
||||
navigationController.pushViewController(controller)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user