Fix random chat slash breaking in groups

This commit is contained in:
Cohee
2023-06-28 11:19:50 +03:00
parent ebf51f3a17
commit 4a9d9b69e9

View File

@@ -21,6 +21,7 @@ import {
import { favsToHotswap, isMobile } from "./RossAscends-mods.js";
import {
groups,
resetSelectedGroup,
selected_group,
} from "./group-chats.js";
@@ -994,6 +995,7 @@ function doNewChat() {
}
function doRandomChat() {
resetSelectedGroup();
setCharacterId(Math.floor(Math.random() * characters.length));
setTimeout(() => {
replaceCurrentChat();