Add a BOB test-case around session closure
This commit is contained in:
parent
a6426194ef
commit
6f3ee151f3
3 changed files with 143 additions and 2 deletions
|
@ -311,6 +311,8 @@ textsecure.registerOnLoadFunction(function() {
|
|||
message.message = data.message;
|
||||
message.sourceDevice = 1;
|
||||
return textsecure.crypto.handleIncomingPushMessageProto(textsecure.protos.decodeIncomingPushMessageProtobuf(getString(message.encode()))).then(function(res) {
|
||||
if (data.expectTerminateSession)
|
||||
return res.flags == textsecure.protos.PushMessageContentProtobuf.Flags.END_SESSION;
|
||||
return res.body == data.expectedSmsText;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue