             "msg": "method",
             "method": "toggleFavorite",
             "params": [subscription.rid, !subscription.favorite]
-        ] as [String : Any]
+            ] as [String : Any]
 
         SocketManager.send(request, completion: completion)
     }

            completion?(response)
        }
    }

    // MARK: Search

    static func spotlight(_ text: String, completion: @escaping MessageCompletionObjectsList<Subscription>) {
        let request = [
            "msg": "method",
            "method": "spotlight",
            "params": [text, NSNull(), ["rooms": true, "users": true]]
        ] as [String : Any]

        SocketManager.send(request) { response in
            guard !response.isError() else {

            })
        }
    }
}

// MARK: Rooms, Groups & DMs
extension SubscriptionManager {
    static func createDirectMessage(_ username: String, completion: @escaping MessageCompletion) {
        let request = [
            "msg": "method",
            "method": "createDirectMessage",
            "params": [username]
            ] as [String : Any]

        SocketManager.send(request) { response in
            guard !response.isError() else { return Log.debug(response.result.string) }
