- return instance()->storage->networks(user);
- }
-
- //! Get the NetworkId for a network name.
- /** \note This method is threadsafe.
- *
- * \param user The core user
- * \param network The name of the network
- * \return The NetworkId corresponding to the given network.
- */
- static inline NetworkId networkId(UserId user, const QString &network) {
- return instance()->storage->getNetworkId(user, network);