feat: auto delete msg

This commit is contained in:
Tristan Yang
2022-12-19 14:36:47 +08:00
parent a75f9c59b4
commit e297411d00
13 changed files with 404 additions and 5 deletions
@@ -69,6 +69,9 @@ const SessionContextMenu: FC<Props> = ({
const data = channelMuted ? { remove_groups: [id] } : { add_groups: [{ gid: id }] };
muteChannel(data);
};
const handleDMSetting = () => {
navigateTo(`/setting/dm/${id}?f=${pathname}`);
};
const items =
context == "user"
@@ -77,6 +80,10 @@ const SessionContextMenu: FC<Props> = ({
title: t("action.mark_read"),
handler: handleReadAll
},
{
title: t("setting"),
handler: handleDMSetting
},
canCopyEmail && {
title: t("action.copy_email"),
handler: copyEmail