Merge branch 'improvement/postit-remove-owner-update' into 'dev'

Ensure post-it ownership remains unchanged when text is edited, maintaining the original owner

See merge request morningstar/Arcturus-Community!94
This commit is contained in:
ArpyAge 2024-10-17 17:45:59 +00:00
commit 730db11ef4

View File

@ -51,7 +51,8 @@ public class PostItSaveDataEvent extends MessageHandler {
if (color.isEmpty()) if (color.isEmpty())
color = PostItColor.YELLOW.hexColor; color = PostItColor.YELLOW.hexColor;
item.setUserId(room.getOwnerId()); // Removed on Oct 15th, 2024: The owner of this item should not be altered when editing the text of a post-it. The original owner must always remain unchanged.
// item.setUserId(room.getOwnerId());
item.setExtradata(color + " " + text); item.setExtradata(color + " " + text);
item.needsUpdate(true); item.needsUpdate(true);
room.updateItem(item); room.updateItem(item);