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(
|
.combinedClickable(
|
||||||
onClick = {},
|
onClick = {},
|
||||||
onDoubleClick = {
|
onDoubleClick = {
|
||||||
onReply()
|
if (canReply) {
|
||||||
|
onReply()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onLongClick = {
|
onLongClick = {
|
||||||
onMessageContextMenu()
|
onMessageContextMenu()
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,7 @@ class ChannelScreenViewModel : ViewModel() {
|
||||||
get() = _replies
|
get() = _replies
|
||||||
|
|
||||||
fun addInReplyTo(reply: SendMessageReply) {
|
fun addInReplyTo(reply: SendMessageReply) {
|
||||||
|
if (_replies.any { it.id == reply.id }) return
|
||||||
_replies.add(reply)
|
_replies.add(reply)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue