Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imc: fix a chat room related crash and DB reload problems (GH #1855)
- Avoid crash in case a chat room has no members. The imc module may encounter chat rooms that, for one reason or another, have no members. In that case, we cannot use the URI of the first member as the owner URI. This happens, for example, when the destroy function fails to save chat room members into the database. - When storing data in database, use replace instead of insert. The insert statement would fail with an index violation if the database already contains a matching record. That would happen, for example, if some of the records being saved in mod_destroy were re-loaded from the database on server start. (cherry picked from commit 669bb9a)
- Loading branch information