Skip to content

Commit

Permalink
Publish latest SDK version
Browse files Browse the repository at this point in the history
Publish latest SDK version

Version 2.1.1
  • Loading branch information
pavelreiter authored Aug 16, 2024
1 parent d547cde commit f76df8c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<a name="unreleased"></a>
## [Unreleased]

<a name="2.1.1"></a>
## [2.1.1]
### Bug Fixes
- CaseStatusChanged with status closed doesn't archive thread in SingleThread mode

<a name="2.1.0"></a>
## [2.1.0]
### Bug Fixes
Expand Down Expand Up @@ -239,7 +244,8 @@
- failure
- typing start/end

[Unreleased]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/2.1.0...HEAD
[Unreleased]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/2.1.1...HEAD
[2.1.1]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/2.1.0...2.1.1
[2.1.0]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/2.0.0...2.1.0
[2.0.0]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.3.1...2.0.0
[1.3.1]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.3.0...1.3.1
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ plugins {
}

group = GROUP
version = "2.1.0" // Fallback version
version = "2.1.1" // Fallback version

allprojects {
group = rootProject.group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package com.nice.cxonechat.internal

import com.nice.cxonechat.Cancellable
import com.nice.cxonechat.ChatFieldHandler
import com.nice.cxonechat.ChatMode.SingleThread
import com.nice.cxonechat.ChatThreadEventHandler
import com.nice.cxonechat.ChatThreadHandler
import com.nice.cxonechat.ChatThreadHandler.OnThreadUpdatedListener
Expand Down Expand Up @@ -55,8 +56,12 @@ internal class ChatThreadHandlerImpl(
val onUpdated = chat.socketListener.addCallback(EventThreadUpdated) {
listener.onUpdated(thread)
}
val onArchived = chat.socketListener.addCallback(EventCaseStatusChanged) { event ->
CaseStatusChangedHandlerActions.handleCaseClosed(thread, event, listener::onUpdated)
val onArchived = if (chat.chatMode !== SingleThread) {
chat.socketListener.addCallback(EventCaseStatusChanged) { event ->
CaseStatusChangedHandlerActions.handleCaseClosed(thread, event, listener::onUpdated)
}
} else {
Cancellable.noop
}
return Cancellable(onRecovered, onUpdated, onArchived)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package com.nice.cxonechat.internal
import com.nice.cxonechat.Cancellable
import com.nice.cxonechat.ChatMode.LiveChat
import com.nice.cxonechat.ChatMode.MultiThread
import com.nice.cxonechat.ChatMode.SingleThread
import com.nice.cxonechat.ChatThreadHandler
import com.nice.cxonechat.ChatThreadsHandler
import com.nice.cxonechat.internal.model.ChatThreadInternal
Expand Down Expand Up @@ -75,6 +76,9 @@ internal class ChatThreadsHandlerImpl(
threads = event.threads.map { threadData -> threadData.toChatThread().asMutable() }
listener.onThreadsUpdated(threads)
}
if (chat.chatMode === SingleThread) {
return threadListFetched
}
val threadArchived = chat.socketListener.addCallback(EventCaseStatusChanged) { event ->
threads.asSequence()
.filter(event::inThread)
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ You can use any uprivilidged valid token, since the package are public.
Then you can the dependency simply by adding:

```groovy
implementation "com.nice.cxone:chat-sdk-core:1.3.1"
implementation "com.nice.cxone:chat-sdk-core:2.1.1"
```

### Additional information
Expand Down

0 comments on commit f76df8c

Please sign in to comment.