Skip to content

Commit

Permalink
fix: remove host when coping local emoji (#192)
Browse files Browse the repository at this point in the history
When the "Copy" button in `EmojiSheet` is tapped, copy the name with the
trailing `@.` removed.
  • Loading branch information
poppingmoon authored May 26, 2024
1 parent 2323d51 commit 593fbfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view/widget/emoji_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class EmojiSheet extends ConsumerWidget {
ListTile(
leading: const Icon(Icons.copy),
title: Text(t.misskey.copy),
onTap: () => copyToClipboard(context, emoji),
onTap: () => copyToClipboard(context, emoji.replaceAll('@.', '')),
),
if (canReact)
ListTile(
Expand Down

0 comments on commit 593fbfc

Please sign in to comment.