mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 03:29:28 +01:00
add some default recents
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
245280615c
commit
5a4d09da5c
@ -261,6 +261,7 @@ class MessageActionsDialog(
|
||||
val searchResults = searchEmojiManager.search(keyword)
|
||||
if (searchResults.isNotEmpty()) {
|
||||
initialEmojisFromSearch.add(searchResults[0].component1())
|
||||
recentEmojiManager.addEmoji(searchResults[0].component1())
|
||||
}
|
||||
if (initialEmojisFromSearch.size >= 8) {
|
||||
return@forEach
|
||||
@ -301,9 +302,12 @@ class MessageActionsDialog(
|
||||
val result = SearchEmojiManager().search(keyword)
|
||||
if (result.isNotEmpty()) {
|
||||
recentEmojiManager.addEmoji(result[0].component1())
|
||||
recentEmojiManager.persist()
|
||||
}
|
||||
}
|
||||
|
||||
textView.visibility = View.VISIBLE
|
||||
|
||||
} else {
|
||||
textView.visibility = View.GONE
|
||||
}
|
||||
@ -508,6 +512,7 @@ class MessageActionsDialog(
|
||||
.subscribeOn(Schedulers.io())
|
||||
?.observeOn(AndroidSchedulers.mainThread())
|
||||
?.subscribe(ReactionDeletedObserver())
|
||||
|
||||
} else {
|
||||
reactionsRepository.addReaction(currentConversation!!.token!!, message, emoji)
|
||||
.subscribeOn(Schedulers.io())
|
||||
|
Loading…
Reference in New Issue
Block a user