mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Cache parsed emojies
This commit is contained in:
@ -521,7 +521,7 @@ class _PostTileState extends State<PostTile> {
|
||||
context: context,
|
||||
title: tr("Update comment content"),
|
||||
message: tr("New content:"),
|
||||
defaultValue: comment.content,
|
||||
defaultValue: comment.content.isNull ? "" : comment.content.content,
|
||||
hint: tr("New content..."),
|
||||
);
|
||||
|
||||
@ -529,7 +529,7 @@ class _PostTileState extends State<PostTile> {
|
||||
return showSimpleSnack(context, tr("Could not update comment content!"));
|
||||
|
||||
setState(() {
|
||||
comment.content = newContent;
|
||||
comment.content.content = newContent;
|
||||
});
|
||||
}
|
||||
|
||||
@ -591,7 +591,7 @@ class _PostTileState extends State<PostTile> {
|
||||
context: context,
|
||||
title: tr("Update post content"),
|
||||
message: tr("Please enter message content: "),
|
||||
defaultValue: widget.post.content == null ? "" : widget.post.content,
|
||||
defaultValue: widget.post.content.isNull == null ? "" : widget.post.content.content,
|
||||
hint: tr("Post content"),
|
||||
);
|
||||
|
||||
@ -602,7 +602,7 @@ class _PostTileState extends State<PostTile> {
|
||||
return;
|
||||
}
|
||||
|
||||
setState(() => widget.post.content = newContent);
|
||||
setState(() => widget.post.content.content = newContent);
|
||||
}
|
||||
|
||||
/// Perform the deletion of the post
|
||||
|
Reference in New Issue
Block a user