File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
src/api/integrations/channel/whatsapp Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -2149,20 +2149,7 @@ export class BaileysStartupService extends ChannelStartupService {
21492149 }
21502150 }
21512151
2152- let linkPreview : boolean | undefined ;
2153- let conversationText : string | undefined ;
2154-
2155- if ( typeof message === 'object' && 'conversation' in message && typeof message [ 'conversation' ] === 'string' ) {
2156- conversationText = message [ 'conversation' ] ;
2157- if ( conversationText . includes ( '[linkPreview=false]' ) ) {
2158- message [ 'conversation' ] = conversationText . replace ( '[linkPreview=false]' , '' ) . trim ( ) ;
2159- linkPreview = false ;
2160- }
2161- }
2162-
2163- if ( linkPreview === undefined ) {
2164- linkPreview = options ?. linkPreview != false ? undefined : false ;
2165- }
2152+ const linkPreview = options ?. linkPreview != false ? undefined : false ;
21662153
21672154 let quoted : WAMessage ;
21682155
You can’t perform that action at this time.
0 commit comments