Add deleted by creator
This commit is contained in:
parent
20c34b4477
commit
eff42b6b4f
|
@ -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: [
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue