master
the code has been refactored (now there are no incomprehensible 'UserRole + n') so far only in the list of chats and the list of messages
the client has been converted to the json data format from the server
redesigned dialog creation (all processing on the server)