Add custom state event for "room deleted"
This commit is contained in:
parent
9e8ac6ad67
commit
876b79bee6
4 changed files with 44 additions and 8 deletions
|
|
@ -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" }
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue