feat(core): double tap custom emoji reaction

Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>
This commit is contained in:
rhunk
2025-02-26 23:25:23 +01:00
parent 5fc415d56c
commit 7ded784d8c
3 changed files with 19 additions and 2 deletions

View File

@@ -50,6 +50,16 @@ class DoubleTapChatAction: Feature("Double Tap Chat Action") {
onResult = {}
)
}
if (action == "custom_emoji_reaction") {
context.feature(Messaging::class).conversationManager?.reactToMessage(
conversationId,
messageId,
emoji = context.config.messaging.doubleTapChatActionCustomEmoji.getNullable()?.takeIf { it.isNotEmpty() } ?: "\uD83D\uDC4D",
onError = {},
onSuccess = {}
)
}
}
}
}