forked from cwtch.im/cwtch-ui
parent
27a729d09a
commit
9a67008ece
|
@ -1 +1 @@
|
||||||
2022-12-06-12-16-v1.10.0-8-g137027d
|
2022-12-07-17-51-v1.10.1
|
|
@ -1 +1 @@
|
||||||
2022-12-06-17-15-v1.10.0-8-g137027d
|
2022-12-07-22-53-v1.10.1
|
|
@ -22,6 +22,7 @@ class FileMessage extends Message {
|
||||||
return ChangeNotifierProvider.value(
|
return ChangeNotifierProvider.value(
|
||||||
value: this.metadata,
|
value: this.metadata,
|
||||||
builder: (bcontext, child) {
|
builder: (bcontext, child) {
|
||||||
|
try {
|
||||||
dynamic shareObj = jsonDecode(this.content);
|
dynamic shareObj = jsonDecode(this.content);
|
||||||
if (shareObj == null) {
|
if (shareObj == null) {
|
||||||
return MessageRow(MalformedBubble(), index);
|
return MessageRow(MalformedBubble(), index);
|
||||||
|
@ -43,6 +44,9 @@ class FileMessage extends Message {
|
||||||
}
|
}
|
||||||
|
|
||||||
return MessageRow(FileBubble(nameSuggestion, rootHash, nonce, fileSize, isAuto: metadata.isAuto), index, key: key);
|
return MessageRow(FileBubble(nameSuggestion, rootHash, nonce, fileSize, isAuto: metadata.isAuto), index, key: key);
|
||||||
|
} catch (e) {
|
||||||
|
return MessageRow(MalformedBubble(), index);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue