Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
- Fixed a bug when creating a post
- Fixed a bug when displaying the error message on posts
  • Loading branch information
RiccardoM committed Sep 21, 2020
1 parent b099638 commit 991da4f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,8 @@
# Version 0.5.2
## Bug fixes
- Fixed a bug when creating a post
- Fixed a bug when displaying the error message on posts

# Version 0.5.1
## Changes
- Removed the usage of the `open` field from the poll data since it's no longer going to be used in future Desmos version
Expand Down
Expand Up @@ -23,7 +23,7 @@ class PostsMsgConverter {
return ChainPollData(
question: poll.question,
endDate: poll.endDate,
isOpen: poll.isOpen,
isOpen: true,
allowsMultipleAnswers: poll.allowsMultipleAnswers,
allowsAnswerEdits: poll.allowsAnswerEdits,
options: poll.options.map((e) {
Expand Down
Expand Up @@ -23,7 +23,7 @@ class ErrorPost extends StatelessWidget {
width: 40,
height: 40,
child: PostContentImage(media: post.images[0])),
if (post.message.isNotEmpty)
if (post.message?.isNotEmpty == true)
Flexible(
child: Text(
post.message,
Expand All @@ -33,7 +33,7 @@ class ErrorPost extends StatelessWidget {
),
),
),
if (post.message.isEmpty && post.poll != null)
if (post.message?.isEmpty == true && post.poll != null)
Flexible(
child: Text(
post.poll.question ??
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,6 +1,6 @@
name: mooncake
description: A decentralized microblogging application based on Desmos
version: 0.5.1+05100
version: 0.5.2+05200

environment:
sdk: ">=2.9.0 <3.0.0"
Expand Down

0 comments on commit 991da4f

Please sign in to comment.