Skip to content

Commit 5ddb4bd

Browse files
authored
Fix emoji search using keyboard language instead of system language
Reverts a change to InputSources.swift that made emoji search depend on the current keyboard layout (e.g., Spanish), rather than the system language (e.g., English). This restores the previous behavior by using currentAppInputSource().uniqueElements instead of currentKeyboardLanguage(), ensuring emoji search results align with the system language preferences.
1 parent d96cbd4 commit 5ddb4bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Telegram-Mac/InputSources.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class InputSources: NSObject {
1919

2020
var value: Signal<[String], NoError> {
2121
_inputSource.set(Signal { subscriber in
22-
subscriber.putNext([currentKeyboardLanguage()])
22+
subscriber.putNext(currentAppInputSource().uniqueElements)
2323
subscriber.putCompletion()
2424
return EmptyDisposable
2525
} |> runOn(.mainQueue()))

0 commit comments

Comments
 (0)