Skip to content
Permalink
Browse files

Edited is in nestedMessage for message_changed subtype.

  • Loading branch information...
rectalogic committed Mar 7, 2019
1 parent c2f7632 commit 533e961c854908947e1ef20adca76cbca7485792
Showing with 3 additions and 0 deletions.
  1. +3 −0 SKCore/Sources/Message.swift
@@ -53,6 +53,7 @@ public final class Message: Equatable {
public var responseType: MessageResponseType?
public var replaceOriginal: Bool?
public var deleteOriginal: Bool?
public let edited: Edited?

public init(dictionary: [String: Any]?) {
subtype = dictionary?["subtype"] as? String
@@ -85,6 +86,7 @@ public final class Message: Equatable {
responseType = MessageResponseType(rawValue: dictionary?["response_type"] as? String ?? "")
replaceOriginal = dictionary?["replace_original"] as? Bool
deleteOriginal = dictionary?["delete_original"] as? Bool
edited = Edited(edited:dictionary?["edited"] as? [String: Any])
}

public init(ts: String?) {
@@ -101,6 +103,7 @@ public final class Message: Equatable {
upload = nil
itemType = nil
comment = nil
edited = nil
}

public static func == (lhs: Message, rhs: Message) -> Bool {

0 comments on commit 533e961

Please sign in to comment.
You can’t perform that action at this time.