Add custom state event for "room deleted"

This commit is contained in:
N-Pex 2023-09-29 10:28:33 +02:00
parent 9e8ac6ad67
commit 876b79bee6
4 changed files with 44 additions and 8 deletions

View file

@ -91,6 +91,7 @@
</template>
<script>
import roomInfoMixin from "./roomInfoMixin";
import { STATE_EVENT_ROOM_DELETION_NOTICE } from "../plugins/utils";
export default {
name: "LeaveRoomDialog",
@ -136,7 +137,7 @@ export default {
// Cancel the state event for deletion
this.$matrix.matrixClient.sendStateEvent(
this.room.roomId,
"im.keanu.room_deletion_notice",
STATE_EVENT_ROOM_DELETION_NOTICE,
{ status: "cancel" }
);
@ -146,7 +147,7 @@ export default {
// Send custom state event!
this.$matrix.matrixClient.sendStateEvent(
this.room.roomId,
"im.keanu.room_deletion_notice",
STATE_EVENT_ROOM_DELETION_NOTICE,
{ status: "delete" }
);