Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

[NEW] Send messages via REST API #958

Merged
merged 2 commits into from
Nov 14, 2017
Merged

[NEW] Send messages via REST API #958

merged 2 commits into from
Nov 14, 2017

Conversation

cardoso
Copy link
Collaborator

@cardoso cardoso commented Nov 14, 2017

@RocketChat/ios

Description

This PR adds the REST API abstraction for sending messages

Progress

  • Add PostMessageRequest
  • Tests

@cardoso cardoso added this to the 1.7.3 milestone Nov 14, 2017
@cardoso cardoso self-assigned this Nov 14, 2017
})
}
// TODO: Immediate feedback
SubscriptionManager.sendTextMessage(message) { result in

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused Closure Parameter Violation: Unused parameter "result" in a closure should be replaced with _. (unused_closure_parameter)

}
// TODO: Immediate feedback
SubscriptionManager.sendTextMessage(message) { result in
// TODO: Update message

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 (Update message). (todo)

MessageTextCacheManager.shared.update(for: message, completion: nil)
})
}
// TODO: Immediate feedback

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 (Immediate feedback). (todo)

@codecov
Copy link

codecov bot commented Nov 14, 2017

Codecov Report

Merging #958 into develop will decrease coverage by 1.03%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #958      +/-   ##
===========================================
- Coverage     17.9%   16.86%   -1.04%     
===========================================
  Files          159      160       +1     
  Lines         7735     7748      +13     
===========================================
- Hits          1385     1307      -78     
- Misses        6350     6441      +91

@cardoso cardoso force-pushed the new/send_rest.830 branch 3 times, most recently from c173332 to 2a42dd2 Compare November 14, 2017 14:01
@cardoso cardoso changed the title [WIP][NEW] Send messages via REST API [NEW] Send messages via REST API Nov 14, 2017
@cardoso cardoso removed the 🚧 wip label Nov 14, 2017
@cardoso cardoso requested a review from rafaelks November 14, 2017 15:21
@rafaelks rafaelks merged commit 290f59e into develop Nov 14, 2017
@rafaelks rafaelks deleted the new/send_rest.830 branch November 14, 2017 15:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants