Skip to content

Commit

Permalink
fixes 30: Update cache when creating or updating MUCs
Browse files Browse the repository at this point in the history
When clustering, the MUC goes into the cache, but doesn't get an ID, and the savedToDB value is incorrect. No idea if this has any real world impact, but it's certainly wrong. This forces a sync the same way that Admin does when it creates a room.
  • Loading branch information
Fishbowler authored and guusdk committed Jun 24, 2022
1 parent c4390d1 commit ef42403
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ <h1>
REST API Plugin Changelog
</h1>

<p><b>1.8.2</b> ??? 2022</p>
<ul>
<li>[<a href='https://github.com/igniterealtime/openfire-restAPI-plugin/issues/30'>#30</a>] - Update cache when creating or updating MUCs</li>
</ul>

<p><b>1.8.1</b> June 23, 2022</p>
<ul>
<li>[<a href='https://github.com/igniterealtime/openfire-restAPI-plugin/issues/108'>#108</a>] - On existence (HEAD) check, do not log absence of entity verbosely.</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ private void createRoom(MUCRoomEntity mucRoomEntity, String serviceName) throws
if (room.isPersistent()) {
room.saveToDB();
}

getService(serviceName).syncChatRoom(room);
}

private boolean equalToAffiliations(MUCRoom room, MUCRoomEntity mucRoomEntity) {
Expand Down

0 comments on commit ef42403

Please sign in to comment.