mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fix the emoji picker's title when setting a custom status. (#6039)
This commit is contained in:
@@ -9,14 +9,23 @@
|
||||
import Foundation
|
||||
|
||||
typealias EmojiPickerScreenContinuation = AsyncStream<String>.Continuation
|
||||
enum EmojiPickerScreenMode { case reaction, userStatus }
|
||||
|
||||
enum EmojiPickerScreenViewModelAction {
|
||||
case dismiss
|
||||
}
|
||||
|
||||
struct EmojiPickerScreenViewState: BindableState {
|
||||
let mode: EmojiPickerScreenMode
|
||||
var categories: [EmojiPickerEmojiCategoryViewData]
|
||||
var selectedEmojis: Set<String>
|
||||
|
||||
var title: String {
|
||||
switch mode {
|
||||
case .reaction: L10n.commonReactions
|
||||
case .userStatus: L10n.a11yCustomEmoji
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum EmojiPickerScreenViewAction {
|
||||
|
||||
Reference in New Issue
Block a user