messagePreview suddenly stopped working. I was using 4.0.0-beta12 where it was working fine, did no changes to my code and it stopped working so you must’ve changed something on the backend side. Updated to the newest beta but it still doesn’t work.
let notificationToken = dependencies.amityChannelRepository
.observe { [weak self] liveCollection, _, error in
let chatChannels = liveCollection.snapshots.compactMap { snapshot -> ChatChannel? in
let messagePreview: ChatChannelLastMessagePreview?
if
let authorFullName = snapshot.messagePreview?.user?.displayName,
let sentAtDate = snapshot.messagePreview?.createdAt
messagePreview is nil