-
Notifications
You must be signed in to change notification settings - Fork 438
[NEW] Send messages via HTTP + WebSockets fallback #1053
Conversation
extension APIResult where T == SendMessageRequest { | ||
|
||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Newline Violation: Files should have a single trailing newline. (trailing_newline)
Codecov Report
@@ Coverage Diff @@
## develop #1053 +/- ##
===========================================
+ Coverage 43.39% 44.95% +1.56%
===========================================
Files 246 243 -3
Lines 13938 13688 -250
Branches 770 770
===========================================
+ Hits 6048 6154 +106
+ Misses 7425 7077 -348
+ Partials 465 457 -8
Continue to review full report at Codecov.
|
case .version: | ||
// old server version: fallback to web sockets | ||
SubscriptionManager.sendTextMessage(message, completion: { response in | ||
updateMessage(json: response.result["result"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add the TODO here?👌
}, errored: { error in | ||
switch error { | ||
case .version: | ||
// TODO: Remove SendMessage Fallback + old methods after Rocket.Chat 1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Todo Violation: TODOs should be avoided (Remove SendMessage Fallback + ...). (todo)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shhhhhhh....
}, errored: { error in | ||
switch error { | ||
case .version: | ||
// TODO: Remove SendMessage Fallback + old methods after Rocket.Chat 1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Todo Violation: TODOs should be avoided (Remove SendMessage Fallback + ...). (todo)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shhhhhhh....
@RocketChat/ios
Testable on: https://unstable.rocket.chat
Closes #830
Closes #473
TODO