RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/federation/server/hooks/afterCreateDirectRoom.js

Summary

Maintainability
A
1 hr
Test Coverage

Function afterCreateDirectRoom has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function afterCreateDirectRoom(room, extras) {
    clientLogger.debug({ msg: 'afterCreateDirectRoom', room, extras });

    // If the room is federated, ignore
    if (room.federation) {
Severity: Minor
Found in apps/meteor/app/federation/server/hooks/afterCreateDirectRoom.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status