Update src/plugins/quotes.tsx

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
UDIA-GOD 2023-08-15 01:31:11 +02:00 committed by GitHub
parent 8054182eca
commit 3b0a4c94c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ export default definePlugin({
async start() {
addButton("Quote", message => {
return message?.type === 0 && message?.content?.length > 0
return message?.content?.length
? {
label: "Quote",
icon: QuoteIcon,