Add "Copy Text" context menu option
This commit is contained in:
parent
023e75e063
commit
8f35ea2435
1 changed files with 10 additions and 0 deletions
|
|
@ -331,6 +331,16 @@ final class const RoomChat({
|
||||||
},
|
},
|
||||||
child: ListTile(leading: Icon(Icons.link), title: Text("Copy Link")),
|
child: ListTile(leading: Icon(Icons.link), title: Text("Copy Link")),
|
||||||
),
|
),
|
||||||
|
if (event.content case MessageContent(:final body?))
|
||||||
|
PopupMenuItem(
|
||||||
|
onTap: () async {
|
||||||
|
await Clipboard.setData(ClipboardData(text: body));
|
||||||
|
},
|
||||||
|
child: ListTile(
|
||||||
|
leading: Icon(Icons.copy),
|
||||||
|
title: Text("Copy Text"),
|
||||||
|
),
|
||||||
|
),
|
||||||
if (ref.watch(
|
if (ref.watch(
|
||||||
PowerLevelController.provider(
|
PowerLevelController.provider(
|
||||||
.redaction(targetUser: event.sender, roomId: roomId),
|
.redaction(targetUser: event.sender, roomId: roomId),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue