[merge] Fix crash on disabling wysiwyg from dev quick option

Fixes https://github.com/SchildiChat/SchildiChat-android-rageshakes/issues/1095

Change-Id: Ie8e2e41a0e162a785bc99d1083632f0d1e6cb227
This commit is contained in:
SpiritCroc 2023-06-27 20:26:27 +02:00
parent d43b296140
commit e06a4b94c6
1 changed files with 2 additions and 2 deletions

View File

@ -198,11 +198,11 @@ class AutoCompleter @AssistedInject constructor(
}
private fun setupEmojis(backgroundDrawable: Drawable, editText: EditText) {
autocompleteEmojiPresenter = autocompleteEmojiPresenterFactory.create(roomId)
// Rich text editor is not yet supported
if (editText is EditorEditText) return
autocompleteEmojiPresenter = autocompleteEmojiPresenterFactory.create(roomId)
autocompletes += Autocomplete.on<EmojiItem>(editText)
.with(CharPolicy(TRIGGER_AUTO_COMPLETE_EMOJIS, false))
.with(autocompleteEmojiPresenter)