server/services/nextcloud-talk/lib/message/message.send.js
Function send
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function send(token, message) {
logger.debug(`Sending Nextcloud Talk message to user with token = ${token}.`);
const userBot = Object.values(this.bots).find((bot) => bot.token === token);