diff --git a/Documentation/Index.md b/Documentation/Index.md index c1acd370..9f103331 100644 --- a/Documentation/Index.md +++ b/Documentation/Index.md @@ -817,7 +817,7 @@ Protocol that is to be adopted to track if current [Operator](#operator-protocol

changed(operator:to:) method

-Called when [Operator](#operator-protocol) object of the current chat changed. New one value can be `nil` (if an operator leaved the chat). +Called when [Operator](#operator-protocol) object of the current chat changed. Values can be `nil` (if an operator leaved the chat or there was no operator before). [Go to table of contents](#table-of-contents) diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 3a9675a2..668677c5 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -9,7 +9,7 @@ PODS: - SQLite.swift (0.11.5): - SQLite.swift/standard (= 0.11.5) - SQLite.swift/standard (0.11.5) - - WebimClientLibrary (3.21.0): + - WebimClientLibrary (3.21.2): - SQLite.swift DEPENDENCIES: @@ -44,7 +44,7 @@ SPEC CHECKSUMS: SlackTextViewController: b854e62c1c156336bc4fd409c6ca79b5773e8f9d SnapKit: a42d492c16e80209130a3379f73596c3454b7694 SQLite.swift: 6e5356850bb1791459f8c16d6ee9195b28714a2e - WebimClientLibrary: 0d77b0617e63818b96dab9eba9c2f41b59d66e14 + WebimClientLibrary: 15d8419d64556547ea93921089bf31f21e16c7bb PODFILE CHECKSUM: 3ae813f4c3db6d1830eddfcf1600cb0f21e44002 diff --git a/Example/Pods/Local Podspecs/WebimClientLibrary.podspec.json b/Example/Pods/Local Podspecs/WebimClientLibrary.podspec.json index 333a7eae..98e31e9d 100644 --- a/Example/Pods/Local Podspecs/WebimClientLibrary.podspec.json +++ b/Example/Pods/Local Podspecs/WebimClientLibrary.podspec.json @@ -1,6 +1,6 @@ { "name": "WebimClientLibrary", - "version": "3.21.1", + "version": "3.21.2", "authors": { "Webim.ru Ltd.": "n.lazarev-zubov@webim.ru" }, @@ -16,7 +16,7 @@ "swift_version": "4.0", "source": { "git": "https://github.com/webim/webim-client-sdk-ios.git", - "tag": "3.21.1" + "tag": "3.21.2" }, "dependencies": { "SQLite.swift": [ diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock index ff371789..668677c5 100644 --- a/Example/Pods/Manifest.lock +++ b/Example/Pods/Manifest.lock @@ -9,7 +9,7 @@ PODS: - SQLite.swift (0.11.5): - SQLite.swift/standard (= 0.11.5) - SQLite.swift/standard (0.11.5) - - WebimClientLibrary (3.21.1): + - WebimClientLibrary (3.21.2): - SQLite.swift DEPENDENCIES: @@ -44,7 +44,7 @@ SPEC CHECKSUMS: SlackTextViewController: b854e62c1c156336bc4fd409c6ca79b5773e8f9d SnapKit: a42d492c16e80209130a3379f73596c3454b7694 SQLite.swift: 6e5356850bb1791459f8c16d6ee9195b28714a2e - WebimClientLibrary: 0d77b0617e63818b96dab9eba9c2f41b59d66e14 + WebimClientLibrary: 15d8419d64556547ea93921089bf31f21e16c7bb PODFILE CHECKSUM: 3ae813f4c3db6d1830eddfcf1600cb0f21e44002 diff --git a/Example/Pods/Target Support Files/Pods-WebimClientLibrary_Example/Info.plist b/Example/Pods/Target Support Files/Pods-WebimClientLibrary_Example/Info.plist index 9708cce4..924b2b11 100644 --- a/Example/Pods/Target Support Files/Pods-WebimClientLibrary_Example/Info.plist +++ b/Example/Pods/Target Support Files/Pods-WebimClientLibrary_Example/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 3.21.1 + 3.21.2 CFBundleSignature ???? CFBundleVersion diff --git a/Example/Pods/Target Support Files/Pods-WebimClientLibrary_Tests/Info.plist b/Example/Pods/Target Support Files/Pods-WebimClientLibrary_Tests/Info.plist index 9708cce4..924b2b11 100644 --- a/Example/Pods/Target Support Files/Pods-WebimClientLibrary_Tests/Info.plist +++ b/Example/Pods/Target Support Files/Pods-WebimClientLibrary_Tests/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 3.21.1 + 3.21.2 CFBundleSignature ???? CFBundleVersion diff --git a/Example/Pods/Target Support Files/WebimClientLibrary/Info.plist b/Example/Pods/Target Support Files/WebimClientLibrary/Info.plist index 9708cce4..924b2b11 100644 --- a/Example/Pods/Target Support Files/WebimClientLibrary/Info.plist +++ b/Example/Pods/Target Support Files/WebimClientLibrary/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 3.21.1 + 3.21.2 CFBundleSignature ???? CFBundleVersion diff --git a/Info.plist b/Info.plist index 82ded4f1..e808df5d 100644 --- a/Info.plist +++ b/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 3.21.1 + 3.21.2 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/README.md b/README.md index 1f2097fc..2808da88 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This library provides [_Webim SDK_ for _iOS_](https://webim.ru/integration/mobil Add following line for your target in your **Podfile**: ``` -pod 'WebimClientLibrary', :git => 'https://github.com/webim/webim-client-sdk-ios.git', :branch => 'master', :tag => '3.21.1' +pod 'WebimClientLibrary', :git => 'https://github.com/webim/webim-client-sdk-ios.git', :branch => 'master', :tag => '3.21.2' ``` `use_frameworks!` must be specified. @@ -24,7 +24,7 @@ pod 'WebimClientLibrary', :git => 'https://github.com/webim/webim-client-sdk-ios Add following line to your **Cartfile**: ``` -github "webim/webim-client-sdk-ios" ~> 3.21.1 +github "webim/webim-client-sdk-ios" ~> 3.21.2 ``` ### Additional notes @@ -38,7 +38,7 @@ Trying to integrate _WebimClientLibrary_ into your _Objective-C_ code? Try out o Previous _Objective-C_ version (version numbers 2.x.x) can be reached from **version2** branch. ## Release notes -* FatalErrorHandler reference fixed. +* `CurrentOperatorChangeListener` bug fixed. ## Example diff --git a/WebimClientLibrary.podspec b/WebimClientLibrary.podspec index c74da232..075d5774 100644 --- a/WebimClientLibrary.podspec +++ b/WebimClientLibrary.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'WebimClientLibrary' - s.version = '3.21.1' + s.version = '3.21.2' s.author = { 'Webim.ru Ltd.' => 'n.lazarev-zubov@webim.ru' } s.homepage = 'https://webim.ru/integration/mobile-sdk/ios-sdk-howto/' diff --git a/WebimClientLibrary/Implementation/MessageStreamImpl.swift b/WebimClientLibrary/Implementation/MessageStreamImpl.swift index 46e729fc..51ff51c8 100644 --- a/WebimClientLibrary/Implementation/MessageStreamImpl.swift +++ b/WebimClientLibrary/Implementation/MessageStreamImpl.swift @@ -162,7 +162,7 @@ final class MessageStreamImpl { let previousOperator = currentOperator currentOperator = newOperator - currentOperatorChangeListener?.changed(operator: previousOperator!, + currentOperatorChangeListener?.changed(operator: previousOperator, to: newOperator) } diff --git a/WebimClientLibrary/MessageStream.swift b/WebimClientLibrary/MessageStream.swift index 66c31703..b6f1ca36 100644 --- a/WebimClientLibrary/MessageStream.swift +++ b/WebimClientLibrary/MessageStream.swift @@ -804,7 +804,7 @@ public protocol CurrentOperatorChangeListener: class { - copyright: 2017 Webim */ - func changed(operator previousOperator: Operator, + func changed(operator previousOperator: Operator?, to newOperator: Operator?) }