Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add slash command to switch to a room's virtual room #7839

Merged
merged 6 commits into from
Feb 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Throw newTranslateableError
dbkr committed Feb 21, 2022

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit c77886b8c211cb92eda7af08b4ccd89f889ac40f
2 changes: 1 addition & 1 deletion src/SlashCommands.tsx
Original file line number Diff line number Diff line change
@@ -1137,7 +1137,7 @@ export const Commands = [
runFn: (roomId) => {
return success((async () => {
const room = await VoipUserMapper.sharedInstance().getVirtualRoomForRoom(roomId);
if (!room) throw _t("No virtual room for this room");
if (!room) throw newTranslatableError("No virtual room for this room");
dis.dispatch<ViewRoomPayload>({
action: Action.ViewRoom,
room_id: room.roomId,