mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-03-03 13:36:47 +00:00
fix link shown even if message was not stored
This commit is contained in:
parent
609c7abb55
commit
cd00910e86
1 changed files with 4 additions and 2 deletions
|
|
@ -126,7 +126,7 @@ class _ChatMediaEntryState extends State<ChatMediaEntry> {
|
||||||
final info =
|
final info =
|
||||||
getBubbleInfo(context, widget.message, null, null, null, 200);
|
getBubbleInfo(context, widget.message, null, null, null, 200);
|
||||||
final data = AdditionalMessageData.fromBuffer(addData);
|
final data = AdditionalMessageData.fromBuffer(addData);
|
||||||
if (data.hasLink()) {
|
if (data.hasLink() && widget.message.mediaStored) {
|
||||||
imageBorderRadius = const BorderRadius.only(
|
imageBorderRadius = const BorderRadius.only(
|
||||||
topLeft: Radius.circular(12),
|
topLeft: Radius.circular(12),
|
||||||
topRight: Radius.circular(12),
|
topRight: Radius.circular(12),
|
||||||
|
|
@ -160,7 +160,9 @@ class _ChatMediaEntryState extends State<ChatMediaEntry> {
|
||||||
}
|
}
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: widget.message.senderId == null
|
||||||
|
? CrossAxisAlignment.end
|
||||||
|
: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
key: reopenMediaFile,
|
key: reopenMediaFile,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue