Skip to content

Commit 2d0a155

Browse files
authored
Merge pull request #34 from simplito/feat/getChannel
Feat: getChannel method
2 parents 66b5da6 + 06cf705 commit 2d0a155

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/PrivMXEndpointSwiftNative/include/PrivMXUtils.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ static std::string stringFromBuffer(const endpoint::core::Buffer& buf){
163163
return std::string(buf.stdString());
164164
}
165165

166+
static std::string getChannelFrom(const endpoint::event::ContextCustomEvent& event){
167+
return event.channel;
168+
}
169+
166170
}
167171

168172
#endif /* _PRIVMX_ENDPOINT_SWIFT_NATIVE_PRIVMXUTILS */

0 commit comments

Comments
 (0)