mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-23 20:49:26 +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 = '';
|
var copyString = '';
|
||||||
if (selectedEvents.length == 1) {
|
if (selectedEvents.length == 1) {
|
||||||
return selectedEvents.first
|
return selectedEvents.first
|
||||||
|
.getDisplayEvent(timeline)
|
||||||
.getLocalizedBody(MatrixLocals(L10n.of(context)));
|
.getLocalizedBody(MatrixLocals(L10n.of(context)));
|
||||||
}
|
}
|
||||||
for (var event in selectedEvents) {
|
for (var event in selectedEvents) {
|
||||||
if (copyString.isNotEmpty) copyString += '\n\n';
|
if (copyString.isNotEmpty) copyString += '\n\n';
|
||||||
copyString += event.getLocalizedBody(MatrixLocals(L10n.of(context)),
|
copyString += event.getDisplayEvent(timeline).getLocalizedBody(
|
||||||
|
MatrixLocals(L10n.of(context)),
|
||||||
withSenderNamePrefix: true);
|
withSenderNamePrefix: true);
|
||||||
}
|
}
|
||||||
return copyString;
|
return copyString;
|
||||||
|
Loading…
Reference in New Issue
Block a user