Minor fixes

This commit is contained in:
Christian Pauly 2020-01-02 22:31:39 +01:00
commit de29800f29
19 changed files with 156 additions and 104 deletions

View file

@ -31,7 +31,7 @@ class _ChatDetailsState extends State<ChatDetails> {
await matrix.tryRequestWithLoadingDialog(
widget.room.setName(displayname),
);
if (success != null && success.length == 0) {
if (success != null && success.isEmpty) {
Toast.show(
"Displayname has been changed",
context,
@ -57,7 +57,7 @@ class _ChatDetailsState extends State<ChatDetails> {
),
),
);
if (success != null && success.length == 0) {
if (success != null && success.isEmpty) {
Toast.show(
"Avatar has been changed",
context,