-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OF-2916 and OF-2917 Add the option to control MUC history preservation #2621
OF-2916 and OF-2917 Add the option to control MUC history preservation #2621
Conversation
…cRoom table creation scripts. This new field determines whether a room's chat history is preserved or removed upon its deletion.
…eHistOnRoomDeletion field.[C
…e MUCRoom class so it can be accessed during runtime.
…r to use the new preserveHistOnRoomDeletion field for processing room configuration.
…Manager to load and store room settings and history, incorporating the new preserveHistOnRoomDeletion field. 2. Add functionality to remove room history stored in ofMucConversationLog upon room deletion. 3. Add the new preserveHistOnRoomDeletion field to the MUC default room settings screen, as well as to the room edit and creation screens.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! I've left some pointers in-line.
I assume that you deliberately didn't include code yet that actually makes use of the new setting that is introduced here?
xmppserver/src/main/java/org/jivesoftware/openfire/muc/spi/IQOwnerHandler.java
Outdated
Show resolved
Hide resolved
MUCPersistenceManager was changed to make use of the chat history preservation setting. Is this what you are asking about? |
Add a preserveHistOnDel field to the OfMucRoom table to specify chat history preservation on the deletion of a chat room. Updated MUCPersistenceManager to make use of the new preserveHistOnDel field.
Changing muc#roomconfig_preservehistondel to {http://igniterealtime.org}muc#roomconfig_preservehistondel as it is a third party field.
Yes it was - I had not spotted that when I did the review. There's also an in-memory history object |
No description provided.