1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Register to comment udpate events

This commit is contained in:
2020-04-18 16:46:55 +02:00
parent a60c1ed68c
commit 6b08b62832
4 changed files with 33 additions and 5 deletions

View File

@ -510,10 +510,6 @@ class _PostTileState extends State<PostTile> {
if (!(await _commentsHelper.updateContent(comment.id, newContent)))
return showSimpleSnack(context, tr("Could not update comment content!"));
setState(() {
comment.content.content = newContent;
});
}
/// Process the deletion of a user
@ -575,7 +571,7 @@ class _PostTileState extends State<PostTile> {
title: tr("Update post content"),
message: tr("Please enter message content: "),
defaultValue:
widget.post.content.isNull == null ? "" : widget.post.content.content,
widget.post.content.isNull == null ? "" : widget.post.content.content,
hint: tr("Post content"),
);