messages-send: fix text subtype when not needed

This commit is contained in:
Rajeh Taher
2025-09-26 10:17:56 +03:00
parent 6c6c078625
commit 8b1cfe913d
+2 -2
View File
@@ -926,7 +926,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
return 'event'
}
if (getMediaType(message) !== 'text') {
if (getMediaType(message) !== '') {
return 'media'
}
@@ -966,7 +966,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
return 'url'
}
return 'text'
return ''
}
const getPrivacyTokens = async (jids: string[]) => {