Technically, I think you can make a chat application's chats archivable and searchable, but nobody is going to do that. Discord actually does a better job than I expected, but the text is stuck in the app. It would be great if somehow the chats could be archived in text based format online, but then you would need to write a security model to handle the privacy aspect.