Don't overwrite userId when editing a postit, original user who placed the postit should always stay as the owner

This commit is contained in:
Yordi 2023-01-17 12:39:21 +01:00 committed by yordii
parent 0f3ca7807e
commit c48ef6dcf6

View File

@ -51,7 +51,6 @@ public class SetItemDataEvent extends MessageHandler {
if (color.isEmpty()) if (color.isEmpty())
color = PostItColor.YELLOW.hexColor; color = PostItColor.YELLOW.hexColor;
item.setUserId(room.getOwnerId());
item.setExtradata(color + " " + text); item.setExtradata(color + " " + text);
item.needsUpdate(true); item.needsUpdate(true);
room.updateItem(item); room.updateItem(item);