Skip to content
Snippets Groups Projects
Commit c01336a3 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update MessagePayload model in messenger example app

parent d8c9707d
No related branches found
No related tags found
2 merge requests!153Release 1.1.0,!148[Messenger Example] Setup group chat
import Foundation
public struct MessagePayload: Equatable {
public init(text: String) {
public init(
text: String,
replyingTo: Data? = nil
) {
self.text = text
self.replyingTo = replyingTo
}
public var text: String
public var replyingTo: Data?
}
extension MessagePayload: Codable {
enum CodingKeys: String, CodingKey {
case text
case replyingTo
}
public static func decode(_ data: Data) throws -> Self {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment