From 82578fe953ae38de645dd7ec572a34d3ceaba471 Mon Sep 17 00:00:00 2001
From: plan5 <30434574+plan5@users.noreply.github.com>
Date: Sat, 12 Aug 2023 22:48:37 +0200
Subject: [PATCH 1/4] Change background color from black to white index.html
This commit is meant to fix https://github.com/farooqkz/chooj/issues/36
---
src/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/index.html b/src/index.html
index df25ee0..ed9fcdc 100644
--- a/src/index.html
+++ b/src/index.html
@@ -6,7 +6,7 @@
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=yes"
/>
-
+
chooj
From ef9d10bce145b1069bfd60f227fa6a1c95fdb626 Mon Sep 17 00:00:00 2001
From: plan5 <30434574+plan5@users.noreply.github.com>
Date: Mon, 14 Aug 2023 14:26:34 +0200
Subject: [PATCH 2/4] Fix URL variable for m.audio
---
src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx b/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx
index eecebf6..c4033b2 100644
--- a/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx
+++ b/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx
@@ -186,7 +186,7 @@ function IRCLikeMessageItemAudio({
Duration: {createTextVNode(msToHigherScale(duration))}
Size: {createTextVNode(bytesToHigherScale(size))}
-
+
);
@@ -266,7 +266,7 @@ function IRCLikeMessageItem({
text={content.body}
duration={content.info.duration}
size={content.info.size}
- url={content.url.content_uri}
+ url={content.url}
status={status}
isFocused={isFocused}
/>
From 08547bdaac32594f4b7dc41e370b8ecf1e95ca6f Mon Sep 17 00:00:00 2001
From: plan5 <30434574+plan5@users.noreply.github.com>
Date: Mon, 14 Aug 2023 14:35:26 +0200
Subject: [PATCH 3/4] Fix url variable for audio messages
---
src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx b/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx
index eecebf6..8b40270 100644
--- a/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx
+++ b/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx
@@ -266,7 +266,7 @@ function IRCLikeMessageItem({
text={content.body}
duration={content.info.duration}
size={content.info.size}
- url={content.url.content_uri}
+ url={content.url}
status={status}
isFocused={isFocused}
/>
From 2785272b68475d8bbd35cd0fe1987e6d29fc0daf Mon Sep 17 00:00:00 2001
From: plan5 <30434574+plan5@users.noreply.github.com>
Date: Mon, 14 Aug 2023 14:38:01 +0200
Subject: [PATCH 4/4] Remove broken (and unneeded) audio autoPlay attribute
The "false" part wasn't properly compiled as a string, leaving only the autoPlay part. Removing the entire attribute falls back on the default, which is no autoplay.
Before, all audio messages started playing once they were loaded into the RoomView.
---
src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx b/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx
index 8b40270..c4daae7 100644
--- a/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx
+++ b/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx
@@ -186,7 +186,7 @@ function IRCLikeMessageItemAudio({
Duration: {createTextVNode(msToHigherScale(duration))}
Size: {createTextVNode(bytesToHigherScale(size))}
-
+
);