Skip to content

Node.js based forum software built for the modern web

test: remove check, its in canPin

Barış Soner Uşaklıe4e1dea2a22c
diff --git a/src/api/chats.js b/src/api/chats.js
index f19d8de486..2bbabf91b3 100644
--- a/src/api/chats.js
+++ b/src/api/chats.js
@@ -450,9 +450,6 @@ chatsAPI.pinMessage = async (caller, { roomId, mid }) => {
};
chatsAPI.unpinMessage = async (caller, { roomId, mid }) => {
- if (!utils.isNumber(roomId)) {
- throw new Error('[[error:invalid-data]]');
- }
await messaging.canPin(roomId, caller.uid);
await messaging.unpinMessage(mid, roomId);
};