Skip to content
This repository has been archived by the owner on Jan 28, 2019. It is now read-only.

Commit

Permalink
Threaded message improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Zignego committed Jun 14, 2017
1 parent 28bdffe commit 4cc326c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Sources/NetworkInterface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,4 @@ public struct NetworkInterface {
return "slackkit.boundary.\(arc4random())\(arc4random())"
#endif
}

// MARK: - Filter Nil Parameters
private func filterNilParameters(_ parameters: [String: Any?]) -> [String: Any] {
var finalParameters = [String: Any]()
for (key, value) in parameters {
if let unwrapped = value {
finalParameters[key] = unwrapped
}
}
return finalParameters
}
}
2 changes: 2 additions & 0 deletions Sources/WebAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ extension WebAPI {
channel: String,
thread: String,
text: String,
broadcastReply: Bool = false,
username: String? = nil,
asUser: Bool? = nil,
parse: ParseMode? = nil,
Expand All @@ -242,6 +243,7 @@ extension WebAPI {
"channel": channel,
"thread_ts": thread,
"text": text.slackFormatEscaping,
"broadcastReply": broadcastReply,
"as_user": asUser,
"parse": parse?.rawValue,
"link_names": linkNames,
Expand Down

0 comments on commit 4cc326c

Please sign in to comment.