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

Fix hidden live location timeline tiles after text messages (PSG-1082) #7220

Merged
merged 2 commits into from
Jan 4, 2023

Conversation

Johennes
Copy link
Contributor

@Johennes Johennes commented Jan 3, 2023

This prevents MXEventTypeBeaconInfo events from being added into other bubble cell data objects.

Previously, when starting a live location share right after sending a text message, the beacon info event would get appended into the text message's bubble cell data which prevented it from rendering.

Similarly, when restarting the app in such a situation the events would be getting reprocessed in backwards order which meant the final beacon info landed in its own bubble cell data (causing it to render) but a beacon info right before the text message would now get combined with the text message causing it to go hidden.

To reproduce:

  • Send a text message
  • Start a live location share
  • Notice that the map tile doesn't render

Simulator Screen Shot - iPhone 14 Pro Max - 2023-01-03 at 14 01 23

This prevents `MXEventTypeBeaconInfo` events from being added into other
bubble cell data objects.

Previously, when starting a live location share right after
sending a text message, the beacon info event would get appended into the text
message's bubble cell data which prevented it from rendering.

Similarly, when restarting the app in such a situation the events would be getting
reprocessed _in backwards order_ which meant the final beacon info landed in
its own bubble cell data (causing it to render) but a beacon info right before the
text message would now get combined with the text message causing it to go hidden.
@Johennes Johennes requested a review from alfogrillo January 3, 2023 13:02
@Johennes Johennes changed the title Fix hidden live location timeline tiles after text messages Fix hidden live location timeline tiles after text messages (PSG-1082) Jan 3, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@codecov
Copy link

codecov bot commented Jan 3, 2023

Codecov Report

Base: 11.82% // Head: 11.83% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (7781f6e) compared to base (c4d66d6).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7220      +/-   ##
===========================================
+ Coverage    11.82%   11.83%   +0.01%     
===========================================
  Files         1629     1629              
  Lines       160207   160156      -51     
  Branches     65400    65379      -21     
===========================================
+ Hits         18945    18961      +16     
+ Misses      140621   140558      -63     
+ Partials       641      637       -4     
Flag Coverage Δ
uitests 54.84% <ø> (+0.04%) ⬆️
unittests 5.96% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
Riot/Modules/Room/CellData/RoomBubbleCellData.m 0.00% <0.00%> (ø)
...ingViewer/LiveLocationSharingViewerViewModel.swift 52.63% <0.00%> (-1.76%) ⬇️
...herSessions/View/UserOtherSessionsHeaderView.swift 52.83% <0.00%> (+0.10%) ⬆️
...rOtherSessions/View/UserOtherSessionsToolbar.swift 89.74% <0.00%> (+1.28%) ⬆️
...UserSessionOverview/View/UserSessionOverview.swift 75.00% <0.00%> (+1.96%) ⬆️
Riot/Categories/String.swift 80.00% <0.00%> (+3.33%) ⬆️
...erSessionsOverview/View/UserSessionsOverview.swift 77.94% <0.00%> (+3.92%) ⬆️
...serSessionsOverview/View/UserSessionListItem.swift 64.70% <0.00%> (+4.03%) ⬆️
...s/UserSessionDetails/View/UserSessionDetails.swift 86.11% <0.00%> (+5.03%) ⬆️
...SessionOverview/View/UserSessionOverviewItem.swift 59.52% <0.00%> (+6.19%) ⬆️
... and 4 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.

Copy link
Contributor

@alfogrillo alfogrillo left a comment

Choose a reason for hiding this comment

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

LGTM!

@Johennes Johennes merged commit 103e9b2 into develop Jan 4, 2023
@Johennes Johennes deleted the johannes/psg-1082 branch January 4, 2023 07:25
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.

2 participants