Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Show channel messages button on profile screen even if empty #2492

Merged
merged 5 commits into from
Nov 1, 2023

Conversation

jorgeavaldez
Copy link
Collaborator

@jorgeavaldez jorgeavaldez commented Nov 1, 2023

Why

Screenshot 2023-11-01 at 11 24 45 AM

I deleted a channel message locally but it was the only message in the channel. Then it looked like the channel did not exist. I did see it in the channels list though.

This is a problem only because i fixed https://linear.app/showtime/issue/SHOW2-2303/deleted-messages-are-included-in-profile-channel-message-count

Now we can see it:
Screenshot 2023-11-01 at 11 32 17 AM

How

Validate message count is >= 0 to display

Test Plan

Locally and in staging

Copy link

vercel bot commented Nov 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
showtime ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2023 8:30pm

Copy link

github-actions bot commented Nov 1, 2023

PR Preview - Storybook on Chromatic

✅ Preview: The Storybook preview URL for this Pull Request

✅ Build: The Chromatic build URL for this Pull Request

Copy link

github-actions bot commented Nov 1, 2023

PR Preview - App

This pull request preview deployment is now available.

Open Details

✅ Preview: exp+io.showtime.development://expo-development-client/?url=https://u.expo.dev/45cbf5d5-24fe-4aa6-9580-acf540651abd&channel-name=pr-2492

Comment ID: 1789194884

@hirbod
Copy link
Contributor

hirbod commented Nov 1, 2023

@jorgeavaldez I actually did this on purpose. There is no need to show 0 channel messages imho.

@jorgeavaldez
Copy link
Collaborator Author

jorgeavaldez commented Nov 1, 2023

Screenshot 2023-11-01 at 12 27 10 PM

Changed it to this at Alex's request

@hirbod hirbod merged commit d2754b2 into staging Nov 1, 2023
4 of 7 checks passed
@hirbod hirbod deleted the fix/channels/show-button-for-empty-channel branch November 1, 2023 20:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants