message-send: missing media type
This commit is contained in:
@@ -1114,6 +1114,10 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
||||
return 'event'
|
||||
}
|
||||
|
||||
if (getMediaType(message) !== 'text') {
|
||||
return 'media'
|
||||
}
|
||||
|
||||
return 'text'
|
||||
}
|
||||
|
||||
@@ -1149,6 +1153,8 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
||||
} else if (message.groupInviteMessage) {
|
||||
return 'url'
|
||||
}
|
||||
|
||||
return 'text'
|
||||
}
|
||||
|
||||
const getPrivacyTokens = async (jids: string[]) => {
|
||||
|
||||
Reference in New Issue
Block a user