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

Allow us to properly see 0 members in a policy room details #7065

Merged
merged 3 commits into from
Jan 6, 2022

Conversation

TomatoToaster
Copy link
Contributor

@TomatoToaster TomatoToaster commented Jan 6, 2022

CC: @francoisl

Details

Fixes an issue that causes User Created Policy Rooms to crash on iOS. When there are 0 other members in a policyRoom, it crashes because this 0 && anything = 0 instead of false or undefined. This causes iOS to crash when rendering that 0 value. Since the subtitle can be of type number, I think we should allow the value to be 0.

When policyRooms have 0 members (i.e you're the only person in them), we still want them to show up in reportDetails.

Fixed Issues

$ #7055

Tests / QA

  1. Launch the app and login
  2. Tap the global create + button and choose New Room
  3. Name it something and select your workspace
  4. After room created Tap on Room name to view details
  • Verify that no errors appear in the JS console

Tested On

  • Web
  • Mobile Web
  • [] Desktop
  • iOS
  • Android

Screenshots

Web

Mobile Web

Desktop

iOS

Android

@TomatoToaster TomatoToaster self-assigned this Jan 6, 2022
@TomatoToaster TomatoToaster requested a review from a team as a code owner January 6, 2022 21:06
@MelvinBot MelvinBot removed the request for review from a team January 6, 2022 21:06
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2022

⚠️ ⚠️ Heads up! This pull request has the CP Staging label. ⚠️ ⚠️
Merging it will cause it to be immediately deployed to staging, even if the open StagingDeployCash deploy checklist is locked.

@MelvinBot MelvinBot requested a review from jasperhuangg January 6, 2022 21:06
@TomatoToaster TomatoToaster requested review from francoisl and a team and removed request for jasperhuangg January 6, 2022 21:06
@MelvinBot MelvinBot requested review from jasperhuangg and removed request for a team January 6, 2022 21:07
@TomatoToaster TomatoToaster force-pushed the amal-fix-empty-members-ucpr branch from 7fc4640 to 07554c2 Compare January 6, 2022 21:11
@francoisl francoisl merged commit f88ec35 into main Jan 6, 2022
@francoisl francoisl deleted the amal-fix-empty-members-ucpr branch January 6, 2022 22:05
OSBotify pushed a commit that referenced this pull request Jan 6, 2022
Allow us to properly see 0 members in a policy room details

(cherry picked from commit f88ec35)
@OSBotify
Copy link
Contributor

🚀 Deployed to production by @Jag96 in version: 1.1.26-1 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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