From 20c679606b74abf7121c091ba1c2def35d4ff254 Mon Sep 17 00:00:00 2001 From: rugk Date: Tue, 22 Mar 2016 23:33:50 +0100 Subject: [PATCH] Include updates of v1.1.7 1.1.7 - Add support for "user decline" (thumbs down) delivery receipt type 1.1.6 - Fix bug in PHP keystore - Fix SALT random generator (failed if only one bytes was requested and this happened to be '0') - fixed in https://github.com/rugk/Salt/commit/a6874f787c919a10e4bb94738540887816fc2935 --- README.md | 2 +- source/Threema/MsgApi/Messages/DeliveryReceipt.php | 3 ++- source/bootstrap.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 35bebe1..d74fecc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [Threema Gateway](https://gateway.threema.ch/) PHP SDK -Version: [1.1.5](https://github.com/rugk/threema-msgapi-sdk-php/releases/tag/1.1.5) +Version: [1.1.7](https://github.com/rugk/threema-msgapi-sdk-php/releases/tag/1.1.7) [![Code Climate](https://codeclimate.com/github/rugk/threema-msgapi-sdk-php/badges/gpa.svg)](https://codeclimate.com/github/rugk/threema-msgapi-sdk-php) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rugk/threema-msgapi-sdk-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/rugk/threema-msgapi-sdk-php/?branch=master) diff --git a/source/Threema/MsgApi/Messages/DeliveryReceipt.php b/source/Threema/MsgApi/Messages/DeliveryReceipt.php index 47d5b00..7dfe87c 100644 --- a/source/Threema/MsgApi/Messages/DeliveryReceipt.php +++ b/source/Threema/MsgApi/Messages/DeliveryReceipt.php @@ -18,7 +18,8 @@ class DeliveryReceipt extends ThreemaMessage { private static $receiptTypesToNames = array( 1 => 'received', 2 => 'read', - 3 => 'userack'); + 3 => 'userack', + 4 => 'userdec'); /** * the type of this receipt diff --git a/source/bootstrap.php b/source/bootstrap.php index 80cf1a5..414f2b2 100644 --- a/source/bootstrap.php +++ b/source/bootstrap.php @@ -25,7 +25,7 @@ } }); -$sdkVersion = '1.1.5'; +$sdkVersion = '1.1.7'; define('MSGAPI_SDK_VERSION', $sdkVersion); $cryptTool = Threema\MsgApi\Tools\CryptTool::getInstance();