File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ const patchWWebLibrary = async (client) => {
9898 if ( searchOptions && searchOptions . since !== undefined && Number . isFinite ( searchOptions . since ) && m . t < searchOptions . since ) {
9999 return false
100100 }
101- if ( searchOptions && searchOptions . messageId !== undefined && m . id . id != searchOptions . messageId ) {
101+ if ( searchOptions && searchOptions . messageId !== undefined && m . id . id !== searchOptions . messageId ) {
102102 return false
103103 }
104104 return true
@@ -109,7 +109,7 @@ const patchWWebLibrary = async (client) => {
109109
110110 if ( searchOptions && searchOptions . limit > 0 ) {
111111 while ( msgs . length < searchOptions . limit ) {
112- const loadedMessages = await ( window . require ( 'WAWebChatLoadMessages' ) ) . loadEarlierMsgs ( chat ) ;
112+ const loadedMessages = await ( window . require ( 'WAWebChatLoadMessages' ) ) . loadEarlierMsgs ( { chat } )
113113
114114 if ( ! loadedMessages || ! loadedMessages . length ) break
115115 msgs = [ ...loadedMessages . filter ( msgFilter ) , ...msgs ]
You can’t perform that action at this time.
0 commit comments