Skip to content

Commit 534fc28

Browse files
Merge pull request #87 from sendbird/v4.1.1
Add 4.1.1.
2 parents 080a549 + c38104c commit 534fc28

File tree

15 files changed

+32
-25
lines changed

15 files changed

+32
-25
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v4.1.1 (Nov 8, 2023)
2+
3+
### Improvements
4+
- Updated `connectivity_plus` package to `5.0.1`
5+
16
## v4.1.0 (Nov 3, 2023)
27

38
### Features

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Before installing Sendbird Chat SDK, you need to create a Sendbird application o
4848

4949
```yaml
5050
dependencies:
51-
sendbird_chat_sdk: ^4.1.0
51+
sendbird_chat_sdk: ^4.1.1
5252
```
5353
5454
- Run `flutter pub get` command in your project directory.

lib/src/internal/main/chat/chat.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ part 'chat_notifications.dart';
5858
part 'chat_push.dart';
5959
part 'chat_user.dart';
6060

61-
const sdkVersion = '4.1.0';
61+
const sdkVersion = '4.1.1';
6262

6363
// Internal implementation for main class. Do not directly access this class.
6464
class Chat with WidgetsBindingObserver {

lib/src/internal/main/chat/chat_event_handler.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ extension ChatEventHandler on Chat {
2323
eventManager.removeAllChannelHandlers();
2424
}
2525

26-
void addConnectionHandler(
27-
String identifier, ConnectionHandler handler) {
26+
void addConnectionHandler(String identifier, ConnectionHandler handler) {
2827
sbLog.i(StackTrace.current, 'identifier: $identifier');
2928
eventManager.addConnectionHandler(identifier, handler);
3029
}

lib/src/internal/main/chat/chat_user.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ extension ChatUser on Chat {
1515
}) async {
1616
sbLog.i(StackTrace.current, 'nickname: $nickname');
1717

18-
if (nickname == null && profileFileInfo == null && preferredLanguages == null) {
18+
if (nickname == null &&
19+
profileFileInfo == null &&
20+
preferredLanguages == null) {
1921
throw InvalidParameterException();
2022
}
2123

@@ -73,8 +75,7 @@ extension ChatUser on Chat {
7375

7476
Future<DoNotDisturb> getDoNotDisturb() async {
7577
sbLog.i(StackTrace.current);
76-
return await apiClient
77-
.send<DoNotDisturb>(UserDoNotDisturbGetRequest(this));
78+
return await apiClient.send<DoNotDisturb>(UserDoNotDisturbGetRequest(this));
7879
}
7980

8081
Future<void> setSnoozePeriod({
@@ -105,7 +106,6 @@ extension ChatUser on Chat {
105106

106107
Future<SnoozePeriod> getSnoozePeriod() async {
107108
sbLog.i(StackTrace.current);
108-
return await apiClient
109-
.send<SnoozePeriod>(UserSnoozePeriodGetRequest(this));
109+
return await apiClient.send<SnoozePeriod>(UserSnoozePeriodGetRequest(this));
110110
}
111111
}

lib/src/internal/main/chat_cache/cache_service.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ extension Operation on Cacheable {
5454

5555
void removeFromCache(Chat chat) {
5656
final cacheKey = this is BaseChannel ? null : key;
57-
chat.channelCache
58-
.delete(channelKey: primaryKey, key: cacheKey, data: this);
57+
chat.channelCache.delete(channelKey: primaryKey, key: cacheKey, data: this);
5958
}
6059
}

lib/src/internal/main/logger/logger_stack_trace.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class LoggerStackTrace {
2020
callerFunctionName: callerFunctionName,
2121
fileName: fileInfo.isNotEmpty ? fileInfo[0] : '',
2222
lineNumber: fileInfo.length >= 2 ? fileInfo[1] : '',
23-
columnNumber: fileInfo.length >= 3 ? fileInfo[2].replaceFirst(')', '') : '',
23+
columnNumber:
24+
fileInfo.length >= 3 ? fileInfo[2].replaceFirst(')', '') : '',
2425
);
2526
}
2627

lib/src/internal/main/model/reconnect_task.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class ReconnectTask {
2727

2828
void increaseRetryCount() {
2929
if (_backOffPeriod < config.maxInterval) {
30-
final newBackOff = config.interval * pow(config.multiplier, (_retryCount - 1));
30+
final newBackOff =
31+
config.interval * pow(config.multiplier, (_retryCount - 1));
3132
_backOffPeriod = min(newBackOff.toInt(), config.maxInterval.toInt());
3233
}
3334
_retryCount++;

lib/src/internal/network/http/http_client/request/channel/group_channel/scheduled_message/group_channel_scheduled_message_get_list_request.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ class GroupChannelScheduledMessageListGetRequest extends ApiRequest {
1010
@override
1111
HttpMethod get method => HttpMethod.get;
1212

13-
final scheduledMessageListOrderEnumMap = <ScheduledMessageListQueryOrder, String>{
13+
final scheduledMessageListOrderEnumMap =
14+
<ScheduledMessageListQueryOrder, String>{
1415
ScheduledMessageListQueryOrder.createdAt: 'created_at',
1516
ScheduledMessageListQueryOrder.scheduledAt: 'scheduled_at',
1617
};
@@ -31,7 +32,8 @@ class GroupChannelScheduledMessageListGetRequest extends ApiRequest {
3132
bool? reverse,
3233
List<ScheduledStatus>? status,
3334
MessageTypeFilter? messageType,
34-
ScheduledMessageListQueryOrder? order = ScheduledMessageListQueryOrder.createdAt,
35+
ScheduledMessageListQueryOrder? order =
36+
ScheduledMessageListQueryOrder.createdAt,
3537
}) : super(chat: chat) {
3638
url = 'scheduled_messages';
3739

lib/src/internal/network/http/http_client/request/main/poll/poll_changelogs_get_request.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ class PollChangelogsGetRequest extends ApiRequest {
2121
int? ts,
2222
int limit = pollChangeLogsLimit,
2323
}) : super(chat: chat) {
24-
url =
25-
"${channelType.urlString}/$channelUrl/polls/changelogs";
24+
url = "${channelType.urlString}/$channelUrl/polls/changelogs";
2625
queryParams = {
2726
'token': token,
2827
'change_ts': ts,

0 commit comments

Comments
 (0)