Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Gracefully handle missing user in channels#7504

Merged
nanaya merged 4 commits intoppy:masterfrom
notbakaneko:feature/chat-handle-deleted-user
Apr 20, 2021
Merged

Gracefully handle missing user in channels#7504
nanaya merged 4 commits intoppy:masterfrom
notbakaneko:feature/chat-handle-deleted-user

Conversation

@notbakaneko
Copy link
Collaborator

@notbakaneko notbakaneko commented Apr 19, 2021

Instead of everything just erroring.
Also, finally removes chat's custom user link rendering.
(and fixes usercard missing tooltip position)

top center is also already tooltip position default
return (
<div className={className}>
<div className='chat-message-group__sender'>
<a className='js-usercard' data-tooltip-position='top center' data-user-id={sender.id} href={route('users.show', { user: sender.id })}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

apparently the tooltip-position is supposed to work except it's not anymore when it's converted to typescript. Should probably at least keep the parameter intact for when it's supported again.

also top center is not the default for user card. It's hardcoded to right center at the moment which is the original default.

Copy link
Collaborator

@nanaya nanaya left a comment

Choose a reason for hiding this comment

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

Not sure about link without href but should do for now I guess 🤔

@nanaya nanaya merged commit ee2169c into ppy:master Apr 20, 2021
@notbakaneko notbakaneko deleted the feature/chat-handle-deleted-user branch May 19, 2021 09:18
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.

2 participants

Comments