iOS messagePreview is always nil

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

Tried to update to latest beta but it still doesn’t work

Hello @nadol, We’ve tested the messagePreview feature on our side, and it appears to be working fine. To assist you further, could you please confirm if the Message Preview feature is enabled?

@amitysupport are some extra steps required to enable the message preview since some update? It worked fine before and stopped working without any changes on my end

Hello @nadol , To enable the message preview, please refer to the following documentation: Message Preview Setup.

Let us know if you need any further assistance! :blush:

@amitysupport Where should I get the bearer to run the curl from?