mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-11 11:05:28 +00:00
disallow user to pin
This commit is contained in:
@@ -857,9 +857,7 @@ export default function ContextMenus() {
|
||||
action: "mark_unread",
|
||||
message,
|
||||
});
|
||||
if (sendPermission) {
|
||||
|
||||
|
||||
if (channelPermissions & Permission.ManageMessages) {
|
||||
if (message.is_pinned && channel?.channel_type != "DirectMessage") {
|
||||
generateAction({
|
||||
action: "unpin_message",
|
||||
|
||||
Reference in New Issue
Block a user