Skip to content

Commit 1e10331

Browse files
Sathyan-ElangovanSathyan Elangovan
andauthored
Release/1.0.6 (#30)
* Updated Channel sync api to V5 (#27) Co-authored-by: Sathyan Elangovan <sathya576@gmail.com> * [CM-1124] Fixed un opened conversation being listed on agent app (#28) * Fixed un opened conversation being listed on agent app * added changelog entry fixed typo * fixed varaible value mismatch Co-authored-by: Sathyan Elangovan <sathya576@gmail.com> * release changes Co-authored-by: Sathyan Elangovan <sathya576@gmail.com>
1 parent 1092422 commit 1e10331

11 files changed

Lines changed: 24 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
The changelog for [KommunicateCore-iOS-SDK](https://github.com/Kommunicate-io/KommunicateCore-iOS-SDK). Also see the [releases](https://github.com/Kommunicate-io/KommunicateCore-iOS-SDK/releases) on Github.
44

5-
##[Unreleased]
6-
-
5+
## [1.0.6] 2022-10-27
6+
- [CM-1124] Fixed un opened conversation added to conversation list screen
7+
- [CM-1064] updated channel sync call api to v5
78
## [1.0.5] 2022-09-09
89
- [CM-787] Fixed the issue of user can login with wrong password
910
## [1.0.4] 2022-06-22

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- KommunicateCore-iOS-SDK (1.0.5)
2+
- KommunicateCore-iOS-SDK (1.0.6)
33

44

55
DEPENDENCIES:
@@ -10,7 +10,7 @@ EXTERNAL SOURCES:
1010
:path: "../"
1111

1212
SPEC CHECKSUMS:
13-
KommunicateCore-iOS-SDK: 211b78283a90da82a631fe0831d81536b2e46d6f
13+
KommunicateCore-iOS-SDK: 8a67b448af8aa97e14b8063555fcc5cb1ec24e93
1414

1515
PODFILE CHECKSUM: 8b029372b67d72364ec33cf0ba3ca373cec02677
1616

Example/Pods/Local Podspecs/KommunicateCore-iOS-SDK.podspec.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Pods.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/KommunicateCore-iOS-SDK/KommunicateCore-iOS-SDK-Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

KommunicateCore-iOS-SDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'KommunicateCore-iOS-SDK'
3-
s.version = '1.0.5'
3+
s.version = '1.0.6'
44
s.summary = 'KommunicateCore-iOS SDK pod'
55
s.description = <<-DESC
66
The KommunicateCore-iOS SDK helps you build your own custom UI in your iOS app

Sources/channel/ALChannelClientService.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#import "ALLogger.h"
1919

2020
static NSString *const CHANNEL_INFO_URL = @"/rest/ws/group/info";
21-
static NSString *const CHANNEL_SYNC_URL = @"/rest/ws/group/v3/list";
21+
static NSString *const CHANNEL_SYNC_URL = @"/rest/ws/group/v5/list";
2222
static NSString *const CREATE_CHANNEL_URL = @"/rest/ws/group/v2.1/create";
2323
static NSString *const DELETE_CHANNEL_URL = @"/rest/ws/group/delete";
2424
static NSString *const LEFT_CHANNEL_URL = @"/rest/ws/group/left";

Sources/channel/ALChannelService.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,11 @@ - (void)sendChannelSaveStatusNotification:(NSString *)operationStatus withChanne
12491249
- (void)createChannelsAndUpdateInfo:(NSMutableArray *)channelArray withDelegate:(id<ApplozicUpdatesDelegate>)delegate {
12501250

12511251
for (ALChannel *channelObject in channelArray) {
1252+
// Ignore inserting un opened conversation(Which doesn't have user messages, only contains bot messages)
1253+
NSDictionary *metadata = channelObject.metadata;
1254+
if (metadata && metadata[AL_CHANNEL_CONVERSATION_STATUS] && [metadata[AL_CHANNEL_CONVERSATION_STATUS] isEqual:UN_OPENED_CONVERSATION_STATUS] ) {
1255+
continue;
1256+
}
12521257
// Ignore inserting unread count in sync call
12531258
channelObject.unreadCount = 0;
12541259
[self createChannelEntry:channelObject fromMessageList:NO];

Sources/channel/ALChannelSyncResponse.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ - (instancetype)initWithJSONString:(NSString *)JSONString {
1616
self.alChannelArray = [[NSMutableArray alloc] init];
1717

1818
if ([super.status isEqualToString: AL_RESPONSE_SUCCESS]) {
19-
NSMutableArray *responseArray = [JSONString valueForKey:@"response"];
20-
19+
NSObject *response = [JSONString valueForKey:@"response"];
20+
NSMutableArray *responseArray = [response valueForKey:@"groupPxys"];
21+
2122
for (NSDictionary *JSONDictionaryObject in responseArray) {
2223
ALChannel *alChannel = [[ALChannel alloc] initWithDictonary:JSONDictionaryObject];
2324
[self.alChannelArray addObject:alChannel];

0 commit comments

Comments
 (0)