[sr-dev] git:5.1:c4549a0b: imc: fix a chat room related crash and DB reload problems (GH #1855)