mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-29 01:22:37 +01:00
fix: Copying an event did not obey edits
This commit is contained in:
parent
c4f3829a18
commit
0cb262c39c
@ -301,11 +301,13 @@ class _ChatState extends State<_Chat> {
|
||||
var copyString = '';
|
||||
if (selectedEvents.length == 1) {
|
||||
return selectedEvents.first
|
||||
.getDisplayEvent(timeline)
|
||||
.getLocalizedBody(MatrixLocals(L10n.of(context)));
|
||||
}
|
||||
for (var event in selectedEvents) {
|
||||
if (copyString.isNotEmpty) copyString += '\n\n';
|
||||
copyString += event.getLocalizedBody(MatrixLocals(L10n.of(context)),
|
||||
copyString += event.getDisplayEvent(timeline).getLocalizedBody(
|
||||
MatrixLocals(L10n.of(context)),
|
||||
withSenderNamePrefix: true);
|
||||
}
|
||||
return copyString;
|
||||
|
Loading…
Reference in New Issue
Block a user