diff options
author | Rainb0w :3 <81040339+Rainb0wCodes@users.noreply.github.com> | 2023-04-10 20:26:00 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 20:26:00 -0600 |
commit | 88031fd0b7fa6c8e8d104340874944fe53efc19a (patch) | |
tree | 1a9535258f4e4e3d5c0a864f0c2167d4475657fc | |
parent | properly track reactions (diff) | |
download | server-88031fd0b7fa6c8e8d104340874944fe53efc19a.tar.xz |
Update reactions.ts
-rw-r--r-- | src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts b/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts index fa1c996d..e0a51668 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts @@ -248,7 +248,8 @@ router.delete( already_added.count--; if (already_added.count <= 0) message.reactions.remove(already_added); - else already_added.user_ids.splice(already_added.user_ids.indexOf(user_id), 1); + else + already_added.user_ids.splice(already_added.user_ids.indexOf(user_id), 1); await message.save(); |