Allow use of the in-app emoji picker when using system emoji.

This commit is contained in:
Greyson Parrelli
2024-07-19 12:24:12 -04:00
parent 330debcf37
commit e17cf37799
6 changed files with 10 additions and 33 deletions

View File

@@ -4,7 +4,6 @@ import androidx.annotation.MainThread
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import org.signal.core.util.ThreadUtil
import org.thoughtcrime.securesms.keyvalue.SignalStore
import org.thoughtcrime.securesms.stickers.StickerSearchRepository
import org.thoughtcrime.securesms.util.DefaultValueLiveData
import org.thoughtcrime.securesms.util.RemoteConfig
@@ -15,10 +14,7 @@ class KeyboardPagerViewModel : ViewModel() {
private val pages: DefaultValueLiveData<Set<KeyboardPage>>
init {
val startingPages: MutableSet<KeyboardPage> = KeyboardPage.values().toMutableSet()
if (SignalStore.settings.isPreferSystemEmoji) {
startingPages.remove(KeyboardPage.EMOJI)
}
val startingPages: MutableSet<KeyboardPage> = KeyboardPage.entries.toMutableSet()
if (!RemoteConfig.gifSearchAvailable) {
startingPages.remove(KeyboardPage.GIF)