diff --git a/src/assets/css/filedrop.scss b/src/assets/css/filedrop.scss index fdd6f04..f4cccd1 100644 --- a/src/assets/css/filedrop.scss +++ b/src/assets/css/filedrop.scss @@ -355,6 +355,11 @@ $small-button-height: 36px; right: unset; left: 8px; background: linear-gradient(0deg, #000 0%, #000 100%), #4642f1; + &.close { + right: 8px; + left: unset; + background: $hiliteColor !important; + } } } } diff --git a/src/assets/translations/en.json b/src/assets/translations/en.json index e857f09..19fd4cb 100644 --- a/src/assets/translations/en.json +++ b/src/assets/translations/en.json @@ -386,7 +386,8 @@ "sending": "Sending", "files_sent":"1 file sent! | {count} files sent!", "files_sent_with_note":"1 file sent with a note! | {count} files sent with a note!", - "return_to_home": "Return to home", + "send_more_files": "Send more files", + "close": "Close", "files": "Files" } } diff --git a/src/assets/translations/pt_BR.json b/src/assets/translations/pt_BR.json index 9c69c3e..5bef028 100644 --- a/src/assets/translations/pt_BR.json +++ b/src/assets/translations/pt_BR.json @@ -372,7 +372,6 @@ "sending_progress": "Enviando...", "files_sent": "1 arquivo enviado! | {count} arquivos enviados!", "files_sent_with_note": "1 arquivo enviado com uma nota! | {count} arquivos enviados com uma nota!", - "return_to_home": "Retornar ao início", "add_a_message": "Adicionar uma mensagem", "sending": "Enviando", "any_file_format_accepted": "Qualquer formato de arquivo é aceito", diff --git a/src/components/LeaveRoomDialog.vue b/src/components/LeaveRoomDialog.vue index 8c53481..f75052d 100644 --- a/src/components/LeaveRoomDialog.vue +++ b/src/components/LeaveRoomDialog.vue @@ -117,22 +117,10 @@ export default { }, onLeaveRoom() { - const lastRoom = this.onlyJoinedToThisRoom(); - //this.$matrix.matrixClient.forget(this.room.roomId, true, undefined) - const roomId = this.room.roomId; - this.$matrix - .leaveRoom(roomId) + this.$matrix.leaveRoomAndNavigate(this.room.roomId) .then(() => { this.showDialog = false; console.log("Left room"); - if (lastRoom) { - this.$navigation.push({ name: "Goodbye" }, -1); - } else { - this.$navigation.push( - { name: "Home", params: { roomId: null } }, - -1 - ); - } }) .catch((err) => { console.log("Error leaving", err); diff --git a/src/components/chatMixin.js b/src/components/chatMixin.js index 7d61e67..a2949bb 100644 --- a/src/components/chatMixin.js +++ b/src/components/chatMixin.js @@ -154,7 +154,7 @@ export default { case "m.room.message": if (event.getSender() != this.$matrix.currentUserId) { - if (event.isThreadRoot) { + if (event.isThreadRoot || event.isThread) { // Incoming thread, e.g. a file drop! return MessageIncomingThread; } diff --git a/src/components/file_mode/FileDropLayout.vue b/src/components/file_mode/FileDropLayout.vue index 039a1ca..a1b7d12 100644 --- a/src/components/file_mode/FileDropLayout.vue +++ b/src/components/file_mode/FileDropLayout.vue @@ -95,7 +95,8 @@ color="#4642F1">