added option to react to messages

This commit is contained in:
2024-04-11 18:22:55 +02:00
parent d067ee702a
commit c4a7533315
5 changed files with 129 additions and 87 deletions

View File

@ -288,6 +288,11 @@ class _ChatBubbleState extends State<ChatBubble> {
children: [
GestureDetector(
onHorizontalDragEnd: (DragEndDetails details) {
if(widget.bubbleData.isReplyable) {
Provider.of<ChatProps>(context, listen: false).setReferenceMessageId(widget.bubbleData.id);
}
},
onLongPress: showOptionsDialog,
onDoubleTap: showOptionsDialog,
onTap: () {