Describe the Bug
When a case on the backend is closed on a day that has no chats sent will result in a feed with a dateCell that has no message. The issue also exists on the Android SDK https://github.com/parley-messaging/android-library/issues/52
To Reproduce
Open the example app.
Add some messages
Go to the code and add a system message in the function loadCachedData of MessageManager.
func loadCachedData() {
originalMessages.removeAll(keepingCapacity: true)
if let cachedMessages = messageDataSource?.all() {
originalMessages.append(contentsOf: cachedMessages.sorted(by: <))
}
let systemMessage = Message()
systemMessage.type = .systemMessageAgent
systemMessage.time = Date(timeIntSince1970: 1)
originalMessages.append(systemMessage)
....
Scroll to the oldest message
Actual result: The date 1 Jan 1970 is added without a message below it.
Expected behaviour
When there is no message for a certain date (agent, user, more?..) then the date should not be shown.
Describe the Bug When a case on the backend is closed on a day that has no chats sent will result in a feed with a dateCell that has no message. The issue also exists on the Android SDK https://github.com/parley-messaging/android-library/issues/52
To Reproduce
Open the example app.
Add some messages
Go to the code and add a system message in the function
loadCachedData
ofMessageManager
.Scroll to the oldest message
Actual result: The date 1 Jan 1970 is added without a message below it.
Expected behaviour When there is no message for a certain date (agent, user, more?..) then the date should not be shown.
Screenshots