Skip to content

Commit 8b1cfe9

Browse files
committed
messages-send: fix text subtype when not needed
1 parent 6c6c078 commit 8b1cfe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Socket/messages-send.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
926926
return 'event'
927927
}
928928

929-
if (getMediaType(message) !== 'text') {
929+
if (getMediaType(message) !== '') {
930930
return 'media'
931931
}
932932

@@ -966,7 +966,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
966966
return 'url'
967967
}
968968

969-
return 'text'
969+
return ''
970970
}
971971

972972
const getPrivacyTokens = async (jids: string[]) => {

0 commit comments

Comments
 (0)