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

This commit is contained in:
Yordi 2024-10-15 16:54:08 +02:00
parent 0a6355996a
commit 0301a1467f

View File

@ -51,7 +51,8 @@ public class PostItSaveDataEvent extends MessageHandler {
if (color.isEmpty())
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.needsUpdate(true);
room.updateItem(item);