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

Add fallback text for m.poll.end events (PSG-1156) #1713

Merged
merged 5 commits into from
Feb 10, 2023

Conversation

alfogrillo
Copy link
Contributor

Description

This PR adds a fallback text for m.poll.end events.
These fallbacks are useful for receivers when the associated m.poll.start event is unavailable.

@alfogrillo alfogrillo requested review from a team and Anderas and removed request for a team February 8, 2023 15:51
@codecov
Copy link

codecov bot commented Feb 8, 2023

Codecov Report

Base: 37.38% // Head: 37.37% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (cdfc9a6) compared to base (0a550b5).
Patch coverage: 14.28% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1713      +/-   ##
===========================================
- Coverage    37.38%   37.37%   -0.02%     
===========================================
  Files          612      612              
  Lines        95958    95961       +3     
  Branches     41471    41471              
===========================================
- Hits         35876    35866      -10     
- Misses       59032    59046      +14     
+ Partials      1050     1049       -1     
Impacted Files Coverage Δ
MatrixSDK/Data/MXRoom.m 37.86% <0.00%> (-0.04%) ⬇️
MatrixSDKTests/MXPollRelationTests.m 0.00% <0.00%> (ø)
...xSDK/Data/MXSendReplyEventDefaultStringLocalizer.m 100.00% <100.00%> (ø)
MatrixSDK/MXError.m 86.11% <0.00%> (-4.17%) ⬇️
MatrixSDK/Space/MXSpaceNotificationCounter.swift 69.56% <0.00%> (-1.87%) ⬇️
MatrixSDK/Utils/MXHTTPClient.m 46.34% <0.00%> (-1.36%) ⬇️
MatrixSDK/MXRestClient.m 26.83% <0.00%> (-0.29%) ⬇️
MatrixSDK/Space/MXSpaceService.swift 42.31% <0.00%> (+0.30%) ⬆️
MatrixSDKTests/MXHTTPAdditionalHeadersUnitTests.m 76.59% <0.00%> (+4.25%) ⬆️
...atrixSDKTests/MXThreadEventTimelineUnitTests.swift 72.51% <0.00%> (+6.87%) ⬆️
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -44,7 +44,7 @@ - (instancetype)init
_senderSentTheirLocation = @"has shared their location.";
_senderSentTheirLiveLocation = @"Live location.";
_messageToReplyToPrefix = @"In reply to";
_replyToEndedPoll = @"Ended poll";
_endedPollMessage = @"Ended poll";
Copy link
Contributor

Choose a reason for hiding this comment

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

These strings do not live in the regular localized strings file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, generally clients can override them if they wish.
In this context they are meant to be not localized since we don't want to localize stuff from the sender side when sending an event.

@alfogrillo alfogrillo merged commit f5a4ac9 into develop Feb 10, 2023
@alfogrillo alfogrillo deleted the alfogrillo/fallback_poll_ended_event branch February 10, 2023 09:32
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.

3 participants