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

[NEW] Support starring messages #1608

Merged
merged 15 commits into from
Apr 27, 2018
Merged

[NEW] Support starring messages #1608

merged 15 commits into from
Apr 27, 2018

Conversation

cardoso
Copy link
Collaborator

@cardoso cardoso commented Apr 26, 2018

@RocketChat/ios

Closes #349

XCTAssertNil(nilResult.success, "success is nil if raw is nil")
}
}

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)

return raw?["success"].boolValue
}
}

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)

@RocketChat RocketChat deleted a comment from houndci-bot Apr 26, 2018
@rafaelks rafaelks added this to the 2.3.0 milestone Apr 26, 2018
Copy link
Contributor

@rafaelks rafaelks left a comment

Choose a reason for hiding this comment

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

Wow!!! Fast 👏

@@ -22,7 +22,7 @@ class PublicSettingsRequestSpec: APISpec {
//swiftlint:disable line_length
let path =
"""
\(api.host.absoluteString)/api/v1/settings.public?fields=%7B%22type%22:1%7D&query=%7B%22_id%22:%7B%22$in%22:%5B%22Site_Url%22,%22CDN_PREFIX%22,%22Site_Name%22,%22Assets_favicon_512%22,%22UI_Use_Real_Name%22,%22UI_Allow_room_names_with_special_chars%22,%22Favorite_Rooms%22,%22Accounts_OAuth_Google%22,%22Accounts_OAuth_Facebook%22,%22Accounts_OAuth_Github%22,%22Accounts_OAuth_Gitlab%22,%22Accounts_OAuth_Linkedin%22,%22Accounts_OAuth_Wordpress%22,%22LDAP_Enable%22,%22CAS_enabled%22,%22CAS_login_url%22,%22API_Gitlab_URL%22,%22Accounts_ShowFormLogin%22,%22Accounts_RegistrationForm%22,%22Accounts_PasswordReset%22,%22Accounts_EmailOrUsernamePlaceholder%22,%22Accounts_PasswordPlaceholder%22,%22Accounts_EmailVerification%22,%22Accounts_AllowUserProfileChange%22,%22Accounts_AllowUserAvatarChange%22,%22Accounts_AllowRealNameChange%22,%22Accounts_AllowUsernameChange%22,%22Accounts_AllowEmailChange%22,%22Accounts_AllowPasswordChange%22,%22FileUpload_Storage_Type%22,%22Message_HideType_uj%22,%22Message_HideType_ul%22,%22Message_HideType_au%22,%22Message_HideType_mute_unmute%22,%22Message_HideType_ru%22,%22Message_ShowDeletedStatus%22,%22Message_AllowDeleting%22,%22Message_AllowDeleting_BlockDeleteInMinutes%22,%22Message_ShowEditedStatus%22,%22Message_AllowEditing%22,%22Message_AllowEditing_BlockEditInMinutes%22,%22Message_AllowPinning%22,%22Message_GroupingPeriod%22,%22Message_MaxAllowedSize%22,%22Accounts_CustomFields%22,%22First_Channel_After_Login%22%5D%7D%7D&count=0&offset=0
\(api.host.absoluteString)/api/v1/settings.public?fields=%7B%22type%22:1%7D&query=%7B%22_id%22:%7B%22$in%22:%5B%22Site_Url%22,%22CDN_PREFIX%22,%22Site_Name%22,%22Assets_favicon_512%22,%22UI_Use_Real_Name%22,%22UI_Allow_room_names_with_special_chars%22,%22Favorite_Rooms%22,%22Accounts_OAuth_Google%22,%22Accounts_OAuth_Facebook%22,%22Accounts_OAuth_Github%22,%22Accounts_OAuth_Gitlab%22,%22Accounts_OAuth_Linkedin%22,%22Accounts_OAuth_Wordpress%22,%22LDAP_Enable%22,%22CAS_enabled%22,%22CAS_login_url%22,%22API_Gitlab_URL%22,%22Accounts_ShowFormLogin%22,%22Accounts_RegistrationForm%22,%22Accounts_PasswordReset%22,%22Accounts_EmailOrUsernamePlaceholder%22,%22Accounts_PasswordPlaceholder%22,%22Accounts_EmailVerification%22,%22Accounts_AllowUserProfileChange%22,%22Accounts_AllowUserAvatarChange%22,%22Accounts_AllowRealNameChange%22,%22Accounts_AllowUsernameChange%22,%22Accounts_AllowEmailChange%22,%22Accounts_AllowPasswordChange%22,%22FileUpload_Storage_Type%22,%22Message_HideType_uj%22,%22Message_HideType_ul%22,%22Message_HideType_au%22,%22Message_HideType_mute_unmute%22,%22Message_HideType_ru%22,%22Message_ShowDeletedStatus%22,%22Message_AllowDeleting%22,%22Message_AllowDeleting_BlockDeleteInMinutes%22,%22Message_ShowEditedStatus%22,%22Message_AllowEditing%22,%22Message_AllowEditing_BlockEditInMinutes%22,%22Message_AllowPinning%22,%22Message_AllowStarring%22,%22Message_GroupingPeriod%22,%22Message_MaxAllowedSize%22,%22Accounts_CustomFields%22,%22First_Channel_After_Login%22%5D%7D%7D&count=0&offset=0

Choose a reason for hiding this comment

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

Comma Spacing Violation: There should be no space before and one after any comma. (comma)

@codecov
Copy link

codecov bot commented Apr 27, 2018

Codecov Report

Merging #1608 into develop will increase coverage by 0.32%.
The diff coverage is 57.4%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1608      +/-   ##
===========================================
+ Coverage    34.59%   34.92%   +0.32%     
===========================================
  Files          281      283       +2     
  Lines        13252    13302      +50     
===========================================
+ Hits          4585     4646      +61     
+ Misses        8667     8656      -11
Impacted Files Coverage Δ
Rocket.Chat/Models/AuthSettings.swift 100% <ø> (ø) ⬆️
Rocket.Chat/Models/Message/Message.swift 100% <ø> (ø) ⬆️
...t/API/Requests/General/PublicSettingsRequest.swift 81.81% <ø> (ø) ⬆️
Rocket.Chat/API/Clients/MessagesClient.swift 64.7% <0%> (-6.01%) ⬇️
...ontrollers/Chat/ChatControllerMessageActions.swift 0% <0%> (ø) ⬆️
...Chat/Models/Mapping/AuthSettingsModelMapping.swift 92.92% <100%> (+0.07%) ⬆️
...Chat/API/Requests/Message/StarMessageRequest.swift 100% <100%> (ø)
...cket.Chat/Models/Mapping/MessageModelMapping.swift 81.6% <100%> (+1.12%) ⬆️
Rocket.Chat/Models/Auth/AuthCanStarMessage.swift 100% <100%> (ø)
Rocket.Chat/Models/Auth/AuthCanPinMessage.swift 92.85% <50%> (ø) ⬆️
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb2f85e...6f180ae. Read the comment docs.

@cardoso cardoso merged commit eed879b into develop Apr 27, 2018
@rafaelks rafaelks deleted the feat/star_messages.349 branch April 27, 2018 13:52
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