Fix vite build release version
Also, make sure "export" strings are not removed (rename to "room_export") and import quotes in the QuoteView correctly.
This commit is contained in:
parent
4c364f93e6
commit
ec992bb14d
34 changed files with 621 additions and 284 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import olm from "@matrix-org/olm/olm";
|
||||
global.Olm = olm;
|
||||
import * as sdk from "matrix-js-sdk";
|
||||
import { TimelineWindow, EventTimeline, EventStatus } from "matrix-js-sdk";
|
||||
import util, { STATE_EVENT_ROOM_DELETED, STATE_EVENT_ROOM_TYPE, ROOM_TYPE_CHANNEL, ROOM_TYPE_FILE_MODE, ROOM_TYPE_VOICE_MODE, ROOM_TYPE_DEFAULT } from "../plugins/utils";
|
||||
|
|
@ -530,7 +528,7 @@ export default {
|
|||
|
||||
const resolvedId =
|
||||
this.currentRoomId && this.currentRoomId.startsWith("#")
|
||||
? this.matrixClient.resolveRoomAlias(this.currentRoomId).then((r) => r.room_id)
|
||||
? this.matrixClient.getRoomIdForAlias(this.currentRoomId).then((r) => r.room_id)
|
||||
: Promise.resolve(this.currentRoomId);
|
||||
resolvedId
|
||||
.then((roomId) => {
|
||||
|
|
@ -690,7 +688,7 @@ export default {
|
|||
if (roomIdOrAlias && this.matrixClient) {
|
||||
try {
|
||||
const resolvedRoomId = roomIdOrAlias.startsWith("#")
|
||||
? this.matrixClient.resolveRoomAlias(roomIdOrAlias).then((res) => res.room_id)
|
||||
? this.matrixClient.getRoomIdForAlias(roomIdOrAlias).then((res) => res.room_id)
|
||||
: Promise.resolve(roomIdOrAlias);
|
||||
return resolvedRoomId.then((roomId) => {
|
||||
return this.matrixClient.getJoinedRooms().then((rooms) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue