
chatstore.pl -- Store chat messagesWhen using redis, the messages for a document are stored in the key below as a sorted set where the score is the time in ms and the value is a Prolog dict holding the message.
Prefix:chat:docid:DocId
chat_store(+Message:dict) is detMessage.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.
chat_messages(+DocID, -Messages:list, +Options) is det
swish_config:chat_count_about(+DocID, -Count)[multifile]