Skip to content

Commit 0a0f71d

Browse files
refactored matrix after whatsapp bridge
1 parent 9f4157e commit 0a0f71d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/packages/lowcoder/src/comps/comps/chatroom/chatControllerComp.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ import {
4747
withDefault,
4848
} from "@lowcoder-ee/index.sdk";
4949
import { getData } from "../listViewComp/listViewUtils";
50-
import { MatrixClient } from "matrix-js-sdk";
5150

5251
const EventOptions = [closeEvent] as const;
5352

@@ -241,7 +240,7 @@ let MTComp = (function () {
241240
);
242241
}
243242
}, [props.roomData.value]);
244-
243+
245244
let resourcesInit = () => {
246245
// show the room list after syncing.
247246
matrixClient.on(
@@ -463,6 +462,7 @@ MTComp = withMethodExposing(MTComp, [
463462
) {
464463
console.log(firstValue);
465464
const name: any = firstValue.roomId;
465+
466466
matrixClient
467467
.leave(name)
468468
.then(() => {
@@ -528,9 +528,9 @@ MTComp = withMethodExposing(MTComp, [
528528
await matrixClient.startClient();
529529

530530
let allRooms = await matrixClient.publicRooms();
531-
531+
532532
let rooms: any = [];
533-
allRooms.chunk.forEach(
533+
allRooms.chunk.forEach(
534534
(room: {
535535
name: any;
536536
room_id: any;

0 commit comments

Comments
 (0)