Add a chat message to the chat store. If Message.create == false,
the message is only stored if the chat is already active. This is
used to only insert messages about changes to the file if there is
an ongoing chat so we know to which version chat messages refer.