From 996ad1d58c82a555bc2988a12ba5832ac72d0d29 Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Thu, 28 Oct 2021 11:22:57 -0400
Subject: [PATCH] Revert "chatview: remove useless /"

rfc1738 3.10 describes the file URL form: file://<host>/<path>
According to wikipedia, "file://path (i.e. two slashes, without a
hostname) is never correct, but is often used."

This reverts commit 4e6336d8dd025c3aa755d3cce86b1bdfbc750fab.

Change-Id: Ic3f7c48eb5faa1ec97347328a03c8fda94513faf
---
 src/commoncomponents/DataTransferMessageDelegate.qml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/commoncomponents/DataTransferMessageDelegate.qml b/src/commoncomponents/DataTransferMessageDelegate.qml
index 8296579f5..6c1b53f76 100644
--- a/src/commoncomponents/DataTransferMessageDelegate.qml
+++ b/src/commoncomponents/DataTransferMessageDelegate.qml
@@ -81,7 +81,7 @@ Loader {
                         enabled: canOpen
                         onHoveredChanged: {
                             dataTransferItem.hoveredLink = enabled && hovered ?
-                                        ("file://" + Body) : ""
+                                        ("file:///" + Body) : ""
                         }
                         cursorShape: enabled ?
                                          Qt.PointingHandCursor :
@@ -306,7 +306,7 @@ Loader {
                             antialiasing: true
                             autoTransform: false
                             asynchronous: true
-                            source: "file://" + Body
+                            source: "file:///" + Body
                             property real aspectRatio: implicitWidth / implicitHeight
                             property real adjustedWidth: Math.min(maxSize,
                                                                   Math.max(minSize,
-- 
GitLab