fix: quick reply fixes

Signed-off-by: Infi <wingit@geist.ga>
This commit is contained in:
Infi 2023-06-12 00:22:19 +02:00
parent d3b6efa9fd
commit f1a8b3cb7b
2 changed files with 4 additions and 1 deletions

View File

@ -180,7 +180,9 @@ fun Message(
.combinedClickable(
onClick = {},
onDoubleClick = {
onReply()
if (canReply) {
onReply()
}
},
onLongClick = {
onMessageContextMenu()

View File

@ -101,6 +101,7 @@ class ChannelScreenViewModel : ViewModel() {
get() = _replies
fun addInReplyTo(reply: SendMessageReply) {
if (_replies.any { it.id == reply.id }) return
_replies.add(reply)
}