messages-send: fix text subtype when not needed
This commit is contained in:
@@ -926,7 +926,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
|||||||
return 'event'
|
return 'event'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getMediaType(message) !== 'text') {
|
if (getMediaType(message) !== '') {
|
||||||
return 'media'
|
return 'media'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -966,7 +966,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
|||||||
return 'url'
|
return 'url'
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'text'
|
return ''
|
||||||
}
|
}
|
||||||
|
|
||||||
const getPrivacyTokens = async (jids: string[]) => {
|
const getPrivacyTokens = async (jids: string[]) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user