fix fromMe in chat.fetchMessages (#2314)
* fix fromMe * Fix Test * fix crash in getchat --------- Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
This commit is contained in:
parent
776c1b152e
commit
096e84b0a9
1 changed files with 11 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ class Chat extends Base {
|
|||
if (m.isNotification) {
|
||||
return false; // dont include notification messages
|
||||
}
|
||||
if (searchOptions && searchOptions.fromMe && m.id.fromMe !== searchOptions.fromMe) {
|
||||
if (searchOptions && searchOptions.fromMe !== undefined && m.id.fromMe !== searchOptions.fromMe) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue