Cometchat crash when smart reply use

Hi team,
Our cometchat is crashng when we use smart replies very first time.when a msg add to chatmsgs then it gave me fatel error.I tried everything but could not solve.When we do msgs using typing its working fine.

Please help us to improve cometchat experience.
crashing line -3096

Thanks
Nikhil

This is the crash log,

Fatal error: Index out of range: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.2.25.13/swift/stdlib/public/core/ContiguousArrayBuffer.swift, line 444
2020-09-03 14:55:02.966461+0530 Flipspot[7833:3804511] Fatal error: Index out of range: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.2.25.13/swift/stdlib/public/core/ContiguousArrayBuffer.swift, line 444

The error raised in the Function:
func didSendButtonPressed(title: String)
for case
self.isGroupIs – false
in the line
self.chatMessages[lastSection].append(textMessage!)

Closing this as a duplicate of Cometchat crashes when smart reply is integrated