| 101 | } |
| 102 | |
| 103 | StringList ChatProcessor::clientChannels(ConnectionId clientId) const { |
| 104 | RecursiveMutexLocker locker(m_mutex); |
| 105 | |
| 106 | StringList channels; |
| 107 | for (auto const& pair : m_channels) { |
| 108 | if (pair.second.contains(clientId)) |
| 109 | channels.append(pair.first); |
| 110 | } |
| 111 | return channels; |
| 112 | } |
| 113 | |
| 114 | StringList ChatProcessor::activeChannels() const { |
| 115 | RecursiveMutexLocker locker(m_mutex); |
no test coverage detected