Allow valid self-target item transfers

This commit is contained in:
Jage9
2026-02-28 20:17:49 -05:00
parent 04eb5b26ef
commit 9fe9c6da4d
2 changed files with 57 additions and 3 deletions

View File

@@ -2506,9 +2506,6 @@ class SignalingServer:
if not target or not target.authenticated or not target.user_id:
await self._send_item_result(client, False, "transfer", "Target user is not available.", item.id)
return
if target.id == client.id:
await self._send_item_result(client, False, "transfer", "Cannot transfer an item to yourself.", item.id)
return
if item.createdBy == target.user_id:
await self._send_item_result(client, False, "transfer", "Item already belongs to that user.", item.id)
return