mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Update API
This commit is contained in:
@@ -6538,7 +6538,13 @@ private final class ChatListLocationContext {
|
||||
if channel.flags.contains(.requestToJoin) {
|
||||
actionTitle = presentationData.strings.Group_ApplyToJoin
|
||||
} else {
|
||||
actionTitle = presentationData.strings.Channel_JoinChannel
|
||||
switch channel.info {
|
||||
case .broadcast:
|
||||
actionTitle = presentationData.strings.Channel_JoinChannel
|
||||
case .group:
|
||||
actionTitle = presentationData.strings.Group_JoinGroup
|
||||
}
|
||||
|
||||
}
|
||||
toolbar = Toolbar(leftAction: nil, rightAction: nil, middleAction: ToolbarAction(title: actionTitle, isEnabled: true))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user