diff --git a/src/components/Chat.vue b/src/components/Chat.vue index 5009cd2..16c6f07 100644 --- a/src/components/Chat.vue +++ b/src/components/Chat.vue @@ -257,7 +257,7 @@ + v-model="currentImageInput.useScaled" :disabled="currentImageInput && currentImageInput.sendInfo !== undefined" /> @@ -283,7 +283,7 @@ {{ $t("menu.cancel") }} {{ $t("menu.send") }} + v-if="currentSendShowSendButton" :disabled="currentSendShowSendButton && sendingStatus != sendStatuses.INITIAL">{{ $t("menu.send") }} diff --git a/src/plugins/utils.js b/src/plugins/utils.js index 03de79c..a4158c1 100644 --- a/src/plugins/utils.js +++ b/src/plugins/utils.js @@ -6,6 +6,7 @@ import { AutoDiscovery } from 'matrix-js-sdk'; import User from '../models/user'; const prettyBytes = require("pretty-bytes"); import Hammer from "hammerjs"; +import { Thread } from 'matrix-js-sdk/lib/models/thread'; export const STATE_EVENT_ROOM_DELETION_NOTICE = "im.keanu.room_deletion_notice"; export const STATE_EVENT_ROOM_DELETED = "im.keanu.room_deleted"; @@ -399,7 +400,7 @@ class Util { // If thread root (an eventId) is set, add that here if (threadRoot) { messageContent["m.relates_to"] = { - "rel_type": "m.thread", + "rel_type": Thread.hasServerSideSupport ? "m.thread" : "io.element.thread", "event_id": threadRoot }; }