diff options
author | theia | 2023-02-03 17:07:17 -0500 |
---|---|---|
committer | theia | 2023-02-03 17:07:17 -0500 |
commit | c11da4dd7e082fd54562c3676dc27f4a0e8e3048 (patch) | |
tree | 669190c4035926b8e5d6d3349a0b74414eb87989 /graffiti.js | |
parent | 486de89b002b996e2fc8e0538eb7e25df2d18541 (diff) |
Private messaging working
Diffstat (limited to 'graffiti.js')
-rw-r--r-- | graffiti.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graffiti.js b/graffiti.js index 4100e08..824fdf6 100644 --- a/graffiti.js +++ b/graffiti.js @@ -140,7 +140,7 @@ export default class { // Replace the object by copying // so references to it don't break this.#recursiveCopy(objectMap[uuid], object) - } else { + } else if (!('_id' in object)) { // Add properties to the object // so it can be updated and removed @@ -148,6 +148,7 @@ export default class { Object.defineProperty(object, '_id', { value: this.#objectUUID(object) }) Object.defineProperty(object, '_update', { value: ()=>this.update(object) }) Object.defineProperty(object, '_remove', { value: ()=>this.remove(object) }) + objectMap[uuid] = object } } |