Hi! In legacy chat mobile SDKs we had a logic that checks if there is an active chat with the user (in order not to block the app by timeout, what we usually do). We used the below code:
chat.providers()?.chatProvider()?.chatState?.isChatting == true
How should it look like in Messaging? We can not find relevant documentation
You could try looking into using isFinalEvent. If a message is marked as false for this then you could possibly assume the conversation is active.