fix: quick reply fixes
Signed-off-by: Infi <wingit@geist.ga>
This commit is contained in:
parent
d3b6efa9fd
commit
f1a8b3cb7b
|
|
@ -180,7 +180,9 @@ fun Message(
|
|||
.combinedClickable(
|
||||
onClick = {},
|
||||
onDoubleClick = {
|
||||
onReply()
|
||||
if (canReply) {
|
||||
onReply()
|
||||
}
|
||||
},
|
||||
onLongClick = {
|
||||
onMessageContextMenu()
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ class ChannelScreenViewModel : ViewModel() {
|
|||
get() = _replies
|
||||
|
||||
fun addInReplyTo(reply: SendMessageReply) {
|
||||
if (_replies.any { it.id == reply.id }) return
|
||||
_replies.add(reply)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue