Fix QuickMention not working in DMs (#2028)

Co-authored-by: V <vendicated@riseup.net>
main
fres621 11 months ago committed by GitHub
parent 9a89f7b3b2
commit 613b2dc5f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,7 +31,7 @@ export default definePlugin({
start() {
addButton("QuickMention", msg => {
const channel = ChannelStore.getChannel(msg.channel_id);
if (!PermissionStore.can(PermissionsBits.SEND_MESSAGES, channel)) return null;
if (channel.guild_id && !PermissionStore.can(PermissionsBits.SEND_MESSAGES, channel)) return null;
return {
label: "Quick Mention",

Loading…
Cancel
Save