Skip to content
Snippets Groups Projects
Commit 2c4d09d6 authored by Aleksandras Kostarevas's avatar Aleksandras Kostarevas
Browse files

Disable unuseEmoji

parent 0b10140a
No related branches found
No related tags found
No related merge requests found
......@@ -29,11 +29,11 @@ object EmojiTracker {
suspend fun Context.unuseEmoji(emoji: String) {
if(isDeviceLocked) return
dataStore.edit {
/*dataStore.edit {
val split = (it[lastUsedEmoji] ?: "").split("<|>")
val idxToRemove = split.indexOfFirst { v -> v == emoji || v.trim() == emoji.trim() }
it[lastUsedEmoji] = split.filterIndexed { i, _ -> i != idxToRemove}.joinToString("<|>")
}
}*/
}
suspend fun Context.getRecentEmojis(): List<String> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment