From ac70634256e07fd686480820f5d6a12c79c1c907 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 21 Apr 2019 15:40:05 -0400 Subject: [PATCH] Remove uneeded "Rejoin" button --- harmonyqml/components/chat/LeftBanner.qml | 5 ----- harmonyqml/components/chat/utils.js | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/harmonyqml/components/chat/LeftBanner.qml b/harmonyqml/components/chat/LeftBanner.qml index 65351d12..be785f33 100644 --- a/harmonyqml/components/chat/LeftBanner.qml +++ b/harmonyqml/components/chat/LeftBanner.qml @@ -11,11 +11,6 @@ Banner { labelText: ChatJS.getLeftBannerText(leftEvent) buttonModel: [ - { - text: "Rejoin", - iconName: "join", - iconColor: Qt.hsla(0.13, 0.9, 0.35, 1), - }, { text: "Forget", iconName: "trash_can", diff --git a/harmonyqml/components/chat/utils.js b/harmonyqml/components/chat/utils.js index c7331e26..dfb2e2b3 100644 --- a/harmonyqml/components/chat/utils.js +++ b/harmonyqml/components/chat/utils.js @@ -162,7 +162,7 @@ function getLeftBannerText(leftEvent) { if (leftEvent.state_key === leftEvent.sender) { return (prev && prev.membership === "invite" ? - "You declined to join this room." : "You left the room.") + + "You declined to join the room." : "You left the room.") + reason }