Skip to content

Commit a45927f

Browse files
committed
Release 2.1.0
1 parent 28d5dea commit a45927f

File tree

2 files changed

+27
-26
lines changed

2 files changed

+27
-26
lines changed

CHANGELOG.md

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,61 @@
1+
## 2.0.0 - 2021-05-20
2+
3+
- Add query message flags support
4+
15
## 2.0.0 - 2021-03-24
26

3-
* Add channel partial update
4-
* Ensure query channels has filters, empty filters not supported
5-
* Fix test of get rate limits endpoint
6-
* Move license to BSD-3
7-
* Drop PHP 7.2 and PHP 7.4 and 8.0 support
8-
* Upgrade composer to v2
9-
* Move to github actions and use phan and php-cs-fixer in CI
7+
- Add channel partial update
8+
- Ensure query channels has filters, empty filters not supported
9+
- Fix test of get rate limits endpoint
10+
- Move license to BSD-3
11+
- Drop PHP 7.2 and PHP 7.4 and 8.0 support
12+
- Upgrade composer to v2
13+
- Move to github actions and use phan and php-cs-fixer in CI
1014

1115
## 1.4.0 - 2021-03-10
1216

13-
* Add get rate limits endpoint support
17+
- Add get rate limits endpoint support
1418

1519
## 1.3.0 - 2020-12-21
1620

17-
* Add support for message filters in search
18-
* Use post for query channels instead of get (deprecated in server)
21+
- Add support for message filters in search
22+
- Use post for query channels instead of get (deprecated in server)
1923

2024
## 1.2.0 - 2020-12-14
2125

22-
* Add channel mute support
23-
* Add getCID helper to channel to concat type and id
26+
- Add channel mute support
27+
- Add getCID helper to channel to concat type and id
2428

2529
## 1.1.10 - 2020-12-10
2630

27-
* Fix location setting while creating client
28-
* Fix urls in file/image upload tests
31+
- Fix location setting while creating client
32+
- Fix urls in file/image upload tests
2933

3034
## 1.1.9 - 2020-12-09
3135

32-
* Support empty filter call in queryMembers
33-
* Fix user id access in member object after a fix in API
36+
- Support empty filter call in queryMembers
37+
- Fix user id access in member object after a fix in API
3438

3539
## 1.1.8 - 2020-09-10
3640

37-
* Support guzzle 7
41+
- Support guzzle 7
3842

3943
## 1.1.7 - 2020-07-01
4044

41-
* add queryMembers implementation
45+
- add queryMembers implementation
4246

4347
## 1.1.6 - 2020-06-29
4448

45-
* Fixed chat settings
49+
- Fixed chat settings
4650

4751
## 1.1.5 - 2019-12-19
4852

49-
* Add $clearHistory option to Channel->hide.
53+
- Add $clearHistory option to Channel->hide.
5054

5155
## 1.1.4 - 2019-10-29
5256

53-
* Check type of expiration in createToken and throw error if not a unix timestamp
57+
- Check type of expiration in createToken and throw error if not a unix timestamp
5458

5559
## 1.1.3 - 2019-10-14
5660

57-
* Allow changing `$baseURL` with STREAM_BASE_CHAT_URL environment variable
61+
- Allow changing `$baseURL` with STREAM_BASE_CHAT_URL environment variable

lib/GetStream/StreamChat/Client.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use GuzzleHttp\Psr7\Uri;
1212
use GuzzleHttp\Psr7\MultipartStream;
1313

14-
const VERSION = '2.0.0';
14+
const VERSION = '2.1.0';
1515

1616
class Client
1717
{
@@ -455,9 +455,6 @@ public function getMessage($messageId)
455455
*/
456456
public function queryMessageFlags($filterConditions, $options=[])
457457
{
458-
if ($options === null) {
459-
$options = [];
460-
}
461458
$options["filter_conditions"] = $filterConditions;
462459
return $this->get("moderation/flags/message", ["payload" => json_encode($options)]);
463460
}

0 commit comments

Comments
 (0)