Fixed numerous bugs within talk and file upload

This commit is contained in:
2023-08-09 20:59:37 +02:00
parent 03a930cf83
commit 987734626c
7 changed files with 74 additions and 48 deletions

View File

@ -30,7 +30,7 @@ class ChatMessage {
Widget getWidget() {
if(file == null) {
return SelectableLinkify(
return Linkify(
text: content,
onOpen: onOpen,
);
@ -49,10 +49,7 @@ class ChatMessage {
placeholder: (context, url) {
return const Padding(padding: EdgeInsets.all(10), child: CircularProgressIndicator());
},
imageUrl: "https://${EndpointData().nextcloud().full()}/core/preview?fileId=${file!.id}&x=100&y=-1&a=1",
httpHeaders: {
"Authorization": "Basic ${AccountData().buildHttpAuthString()}"
},
imageUrl: "https://${AccountData().buildHttpAuthString()}@${EndpointData().nextcloud().full()}/index.php/core/preview?fileId=${file!.id}&x=100&y=-1&a=1",
);
}