Update copy text function to return plain text

This commit is contained in:
Hank Grabowski 2023-04-06 10:04:13 -04:00
parent d2aca21f7b
commit 702173016f
2 changed files with 11 additions and 1 deletions

View file

@ -1,5 +1,14 @@
# Relatica Change Log
## Unreleased Updates
* Changes
* The "copy text" action now copies the plain text not HTML version. So things like hashtags show up as "#hashtag"
not
the HTML code around it with the link reference etc.
* Fixes
* New Features
## Version 0.4.0 (beta), 04 April 2023
* Changes

View file

@ -9,6 +9,7 @@ import '../../models/timeline_entry.dart';
import '../../services/timeline_manager.dart';
import '../../utils/active_profile_selector.dart';
import '../../utils/clipboard_utils.dart';
import '../../utils/html_to_edit_text_helper.dart';
import '../../utils/url_opening_utils.dart';
import '../media_attachment_viewer_control.dart';
import '../padding.dart';
@ -223,7 +224,7 @@ class _StatusControlState extends State<FlattenedTreeEntryControl> {
case copyText:
await copyToClipboard(
context: context,
text: item.timelineEntry.body,
text: htmlToSimpleText(item.timelineEntry.body),
message: 'Post link copied to clipboard',
);
break;