You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-ios/SignalServiceKit/src/Loki/Messaging/SSKProtoEnvelope+Loki.swift

13 lines
304 B
Swift

@objc public extension SSKProtoEnvelope {
@objc public var isGroupChatMessage: Bool {
do {
let contentProto = try SSKProtoContent.parseData(self.content!)
return contentProto.dataMessage?.group != nil
} catch {
return false
}
}
}