mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-24 22:09:21 +00:00
Fix issue on posts list not refreshing when a new post is created
This commit is contained in:
parent
2b05fbda35
commit
5b680bb922
@ -29,6 +29,7 @@ class _UserPostsSectionState extends State<UserPostsSection> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => PostsListWidget(
|
||||
key: _postsKey,
|
||||
topWidgets: [
|
||||
widget.user.canPostTexts
|
||||
? PostCreateFormWidget(
|
||||
|
@ -382,9 +382,9 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> {
|
||||
|
||||
this._resetForm();
|
||||
widget.onCreated();
|
||||
} catch (e) {
|
||||
} catch (e, s) {
|
||||
setState(() => _isCreating = false);
|
||||
print("Error while creating post : " + e.toString());
|
||||
print("Error while creating post : $e $s");
|
||||
showSimpleSnack(context, tr("Could not create post !"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user