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:
@ -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"),
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user