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),
|
const SizedBox(height: 5),
|
||||||
if (pmv.value.privateMessage.deleted)
|
if (pmv.value.privateMessage.deleted)
|
||||||
const Text('deleted by creator',
|
Text(
|
||||||
style: TextStyle(fontStyle: FontStyle.italic))
|
L10n.of(context).deleted_by_creator,
|
||||||
|
style: const TextStyle(fontStyle: FontStyle.italic),
|
||||||
|
)
|
||||||
else
|
else
|
||||||
body,
|
body,
|
||||||
Row(children: [
|
Row(children: [
|
||||||
|
|
|
@ -218,10 +218,10 @@ class CommentWidget extends HookWidget {
|
||||||
|
|
||||||
final body = () {
|
final body = () {
|
||||||
if (isDeleted.value) {
|
if (isDeleted.value) {
|
||||||
return const Flexible(
|
return Flexible(
|
||||||
child: Text(
|
child: Text(
|
||||||
'comment deleted by creator',
|
L10n.of(context).deleted_by_creator,
|
||||||
style: TextStyle(fontStyle: FontStyle.italic),
|
style: const TextStyle(fontStyle: FontStyle.italic),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else if (comment.comment.removed) {
|
} else if (comment.comment.removed) {
|
||||||
|
|
Loading…
Reference in New Issue