summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRainb0w :3 <81040339+Rainb0wCodes@users.noreply.github.com>2023-04-10 20:26:00 -0600
committerGitHub <noreply@github.com>2023-04-10 20:26:00 -0600
commit88031fd0b7fa6c8e8d104340874944fe53efc19a (patch)
tree1a9535258f4e4e3d5c0a864f0c2167d4475657fc /src
parentproperly track reactions (diff)
downloadserver-88031fd0b7fa6c8e8d104340874944fe53efc19a.tar.xz
Update reactions.ts
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts3
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();