Skip to content

Commit a258285

Browse files
committed
Version 1.4.3
1 parent dec34fc commit a258285

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

Sources/WebimMobileWidget/Classes/SDK Files/ViewControllers/ChatViewController/ChatViewController/Cells/WMBotButtonsTableViewCell/WMBotButtonsTableViewCell.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,18 +169,13 @@ class WMBotButtonsTableViewCell: WMMessageTableCell {
169169
else { return }
170170
sender.backgroundColor = buttonChoosenBackgroundColor
171171
sender.tintColor = buttonChoosenTitleColor
172+
sender.alpha = 0.5
172173
print("Buttton \(title) with tag\\ID \(id) of message \(messageID) was tapped!")
173174
let buttonInfoDictionary = [
174175
"Message": messageID,
175176
"ButtonID": id,
176177
"ButtonTitle": title
177178
]
178179
sendKeyboardRequest(keyboardRequest: buttonInfoDictionary)
179-
180-
UIView.animate(withDuration: 1,
181-
animations: { [weak self] in
182-
self?.messageView?.alpha = 1
183-
self?.buttonView.alpha = 0
184-
}, completion: nil)
185180
}
186181
}

Sources/WebimMobileWidget/Classes/SDK Files/ViewControllers/ChatViewController/ChatViewController/ChatViewController+Listener.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ extension ChatViewController: MessageListener {
6565
}
6666

6767
self.dataSource.apply(snapshot, animatingDifferences: false) {
68-
guard newMessage.isVisitorType() || self.isLastCellVisible() else { return }
68+
guard newMessage.isVisitorType() || newMessage.isBotType() || self.isLastCellVisible() else { return }
6969
self.scrollToBottom(animated: true)
7070
}
7171

WebimMobileWidget.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 = 'WebimMobileWidget'
3-
s.version = '1.4.1'
3+
s.version = '1.4.3'
44
s.summary = 'Webim.ru mobile UI for client SDK iOS.'
55

66
s.homepage = 'https://webim.ru/integration/mobile-sdk/ios-sdk-howto/'

0 commit comments

Comments
 (0)