diff options
author | V <vendicated@riseup.net> | 2023-05-16 00:19:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 00:19:20 +0200 |
commit | 263884cbd86326ed48a6b69c937ff35dec2d529b (patch) | |
tree | 525a227d17cbfa8eba30b2c3f3ac72873722fd0a /src/plugins/searchReply.tsx | |
parent | bb83c0b672abc5cb812e23d704880e1750fa61e6 (diff) | |
download | Vencord-263884cbd86326ed48a6b69c937ff35dec2d529b.tar.gz Vencord-263884cbd86326ed48a6b69c937ff35dec2d529b.tar.bz2 Vencord-263884cbd86326ed48a6b69c937ff35dec2d529b.zip |
PermViewer: Fix context menu for roleless users & muted channels (#1138)
Co-authored-by: V <vendicated@riseup.net>
Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com>
Diffstat (limited to 'src/plugins/searchReply.tsx')
-rw-r--r-- | src/plugins/searchReply.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/searchReply.tsx b/src/plugins/searchReply.tsx index fe6348b..9e53436 100644 --- a/src/plugins/searchReply.tsx +++ b/src/plugins/searchReply.tsx @@ -38,7 +38,7 @@ const messageContextMenuPatch: NavContextMenuPatchCallback = (children, { messag // dms and group chats const dmGroup = findGroupChildrenByChildId("pin", children); if (dmGroup && !dmGroup.some(child => child?.props?.id === "reply")) { - const pinIndex = dmGroup.findIndex(c => c.props.id === "pin"); + const pinIndex = dmGroup.findIndex(c => c?.props.id === "pin"); return dmGroup.splice(pinIndex + 1, 0, ( <Menu.MenuItem id="reply" |