apps/meteor/client/methods/pinMessage.ts
Function pinMessage
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
pinMessage(message: IMessage) {
if (!Meteor.userId()) {
throw new Meteor.Error('error-not-authorized', 'Not authorized', {
method: 'pinMessage',
});