Add deleted by creator

This commit is contained in:
shilangyu 2021-03-09 08:53:26 +01:00
parent 20c34b4477
commit eff42b6b4f
2 changed files with 7 additions and 5 deletions

View File

@ -335,8 +335,10 @@ class PrivateMessageTile extends HookWidget {
),
const SizedBox(height: 5),
if (pmv.value.privateMessage.deleted)
const Text('deleted by creator',
style: TextStyle(fontStyle: FontStyle.italic))
Text(
L10n.of(context).deleted_by_creator,
style: const TextStyle(fontStyle: FontStyle.italic),
)
else
body,
Row(children: [

View File

@ -218,10 +218,10 @@ class CommentWidget extends HookWidget {
final body = () {
if (isDeleted.value) {
return const Flexible(
return Flexible(
child: Text(
'comment deleted by creator',
style: TextStyle(fontStyle: FontStyle.italic),
L10n.of(context).deleted_by_creator,
style: const TextStyle(fontStyle: FontStyle.italic),
),
);
} else if (comment.comment.removed) {