Skip to content

Commit

Permalink
ensure that items are always unlocked
Browse files Browse the repository at this point in the history
  • Loading branch information
l-brendle committed Oct 20, 2023
1 parent 0b42c98 commit cabe4ca
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions angular-frontend/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,12 @@ export class AppComponent implements OnDestroy {
}
}
onExitItem(item: Item) {
if (item.userLock === this.currentUser) {
this.client?.publish({
destination: "/app/itemlock", body: JSON.stringify({
id: item.id,
lock: false
} as ItemLockMessage)
});
console.log("unlock pls")
}
}

onItemMoved(event: ItemTransferMessage) {
Expand Down

0 comments on commit cabe4ca

Please sign in to comment.