Improved reliability of strictAssert
This commit is contained in:
parent
1a54d438c2
commit
64a4d2e717
5 changed files with 25 additions and 8 deletions
|
@ -2108,7 +2108,7 @@ export default class MessageReceiver
|
|||
|
||||
if (msg.flags && msg.flags & Proto.DataMessage.Flags.PROFILE_KEY_UPDATE) {
|
||||
strictAssert(
|
||||
msg.profileKey && msg.profileKey.length > 0,
|
||||
msg.profileKey != null && msg.profileKey.length > 0,
|
||||
'PROFILE_KEY_UPDATE without profileKey'
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue