mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
Merge branch 'soru/fix-wrong-event-copied' into 'main'
fix: Copying an event did not obey edits See merge request ChristianPauly/fluffychat-flutter!284
This commit is contained in:
commit
ad824803d5
@ -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