Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replies: Implement sending #534

Merged
merged 18 commits into from
Jul 24, 2018
Merged

Replies: Implement sending #534

merged 18 commits into from
Jul 24, 2018

Conversation

SBiOSoftWhare
Copy link
Contributor

Implement reply to an event with text message.

element-hq/element-ios#1911

…tring localizations when send reply to a message in a room.
…ult localization strings used when send reply event to a message in a room.
…d content when encrypting an event. Fix send reply formatted body building when input formatted body is nil.
…ge. Add a better check for `m.relates_to` content field validity.
Copy link
Contributor

@manuroe manuroe left a comment

Choose a reason for hiding this comment

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

LGTM except 2 small remarks

{
if (eventToReply.eventType != MXEventTypeRoomMessage)
{
return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

NO for consistency.

NSString *expectedSecondEventBody = [NSString stringWithFormat:expectedSecondEventBodyStringFormat, firstEventSender];
NSString *expectedSecondEventFormattedBody = [NSString stringWithFormat:expectedSecondEventFormattedBodyStringFormat, permalinkToEvent, permalinkToUser, firstEventSender];

XCTAssert([secondEventBody isEqualToString:expectedSecondEventBody]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Use XCTAssertEqualObjects to compare strings. This is helpful to debug remotely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants