All chats are stored on the server. The offline history is synced across all devices. Even if you receive a chat on for example portal it will be on your mobile app too.