Skip to content
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

Conversation

hqv126
Copy link
Contributor

@hqv126 hqv126 commented Nov 26, 2024

No description provided.

“Huy added 5 commits November 26, 2024 13:48
…cRoom table creation scripts. This new field determines whether a room's chat history is preserved or removed upon its deletion.
…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.
Copy link
Member

@guusdk guusdk left a 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?

distribution/src/database/openfire_db2.sql Outdated Show resolved Hide resolved
distribution/src/database/openfire_db2.sql Outdated Show resolved Hide resolved
@hqv126
Copy link
Contributor Author

hqv126 commented Nov 27, 2024

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?

MUCPersistenceManager was changed to make use of the chat history preservation setting. Is this what you are asking about?

“Huy added 2 commits November 27, 2024 14:51
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.
@guusdk
Copy link
Member

guusdk commented Nov 29, 2024

MUCPersistenceManager was changed to make use of the chat history preservation setting. Is this what you are asking about?

Yes it was - I had not spotted that when I did the review.

There's also an in-memory history object RoomHistory that should be cleaned up, but I think that already is working as intended, even prior to your changes.

@guusdk guusdk merged commit 3c5127e into igniterealtime:main Nov 29, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants