mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
feat: port DeleteMessage and Confirmation
This commit is contained in:
@@ -15,6 +15,7 @@ import { stopPropagation } from "../../../lib/stopPropagation";
|
||||
|
||||
import { useIntermediate } from "../../../context/intermediate/Intermediate";
|
||||
|
||||
import { modalController } from "../../../controllers/modals/ModalController";
|
||||
import ChannelIcon from "../../common/ChannelIcon";
|
||||
import Tooltip from "../../common/Tooltip";
|
||||
import UserIcon from "../../common/user/UserIcon";
|
||||
@@ -111,8 +112,7 @@ export const UserButton = observer((props: UserProps) => {
|
||||
className={styles.icon}
|
||||
onClick={(e) =>
|
||||
stopPropagation(e) &&
|
||||
openScreen({
|
||||
id: "special_prompt",
|
||||
modalController.push({
|
||||
type: "close_dm",
|
||||
target: channel,
|
||||
})
|
||||
@@ -195,8 +195,7 @@ export const ChannelButton = observer((props: ChannelProps) => {
|
||||
<IconButton
|
||||
className={styles.icon}
|
||||
onClick={() =>
|
||||
openScreen({
|
||||
id: "special_prompt",
|
||||
modalController.push({
|
||||
type: "leave_group",
|
||||
target: channel,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user