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: channel view should show NO_CHANNEL placeholder after leaving all channels #901

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

AhyoungRyu
Copy link
Contributor

The change comes from #894 and made by @aldenquimby

@aldenquimby
Copy link

Thank you @AhyoungRyu !

@AhyoungRyu AhyoungRyu merged commit ceca355 into main Jan 2, 2024
@AhyoungRyu AhyoungRyu deleted the feat/leave-all-channels branch January 2, 2024 00:49
@HoonBaek HoonBaek mentioned this pull request Jan 5, 2024
HoonBaek added a commit that referenced this pull request Jan 5, 2024
## [v3.9.3] (Jan 5, 2024)

### Fixes:
* **Refactor `--sendbird-vh` CSS Variable Logic in InviteUsers
Component**
- Improved code readability by moving logic to the `InviteUsers`
component.
- [GitHub PR
#899](#899)
(CLNP-1806)
* **Prevent Access to `window` in SSR Environments**
- Fixed server-side rendering issues in NextJS by preventing access to
the `window` object.
- (Original Author: [Aaron James
King](https://github.com/AaronJamesKing))
- [GitHub PR
#900](#900)
(SBISSUE-14287)
* **Update Channel View to Show `NO_CHANNEL` Placeholder**
- Channel view now displays `NO_CHANNEL` placeholder after leaving all
channels.
  - (Original Author: [Alden Quimby](https://github.com/aldenquimby))
- [GitHub PR
#901](#901)
* **Fix Replay of Voice Memos**
  - Resolved the issue preventing the replay of voice memos. 
  - (Original Author: [Alden Quimby](https://github.com/aldenquimby))
- [GitHub PR
#902](#902)
* **Resolve Image Upsizing Issue in ImageCompression**
- Fixed the issue with image upsizing in ImageCompression. (Original
Author: [GitHub User](https://github.com/GitHubUser)) (CLNP-1832)
- [GitHub PR
#903](#903)
* **Update Peer Dependencies for npm Install**
- Addressed peer dependencies issues in npm install. (Original Author:
[GitHub User](https://github.com/GitHubUser))
- [GitHub PR
#905](#905)
* **Fix Scroll Behavior in Open Channel**
- Fixed scroll behavior when sending a message in an open channel.
(Original Author: [GitHub User](https://github.com/GitHubUser))
- [GitHub PR
#906](#906)
* **Fix Cross-Site Scripting Vulnerability in OGTag**
- Fixed cross-site scripting vulnerability in OGTag. (Original Author:
[GitHub User](https://github.com/GitHubUser))
- [GitHub PR
#907](#907)
@aldenquimby
Copy link

@AhyoungRyu @bang9 FYI I believe this caused an issue with the mobile layout in the default App:

onChannelSelect={(channel) => {
setCurrentChannel(channel);
setPanel(PANELS.CHANNEL);
}}

I think this needs to change to:

            onChannelSelect={(channel) => {
              setCurrentChannel(channel);
              if (channel) {
                setPanel(PANELS.ChannelPanel);
              }
            }}

So that you only switch to the channel panel if a channel was actually selected (vs unselected / left)

Apologies for not catching this in my initial PR

@aldenquimby
Copy link

@AhyoungRyu @bang9 another possibly related bug here (although it looks to me like it may have been a problem beforehand too): #937

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

Successfully merging this pull request may close these issues.

3 participants