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();