Revert "Merge pull request #38 from archem-team/feat/revert_pin"

This reverts commit 6ea40a4411, reversing
changes made to 8d244ab600.
pull/1154/head
Abron 2025-02-06 11:02:01 +03:30
parent 6ea40a4411
commit 9a45ae22e4
2 changed files with 3 additions and 3 deletions

View File

@ -329,9 +329,9 @@ export default observer(
<>
{channel.channel_type != "DirectMessage" && (
<PinIcon position="top" accent>
{/* <div onClick={() => unhide()}>
<div onClick={() => unhide()}>
<Pin size={24} />
</div> */}
</div>
</PinIcon>
)}
{!hidden && <PinBar accent position="top" >

View File

@ -857,7 +857,7 @@ export default function ContextMenus() {
action: "mark_unread",
message,
});
if (1 == 2) {
if (sendPermission) {
if (message.is_pinned && channel?.channel_type != "DirectMessage") {