-
Notifications
You must be signed in to change notification settings - Fork 143
fix: Operate ephemeral channel #432
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
Conversation
src/smart-components/ChannelList/components/ChannelPreview/index.tsx
Outdated
Show resolved
Hide resolved
| renderFileUploadIcon?: () => React.ReactElement; | ||
| renderVoiceMessageIcon?: () => React.ReactElement; | ||
| renderSendMessageIcon?: () => React.ReactElement; | ||
| renderFileUploadIcon?: () => React.ReactElement; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| declare module '@sendbird/uikit-react/ui/OpenChannelOGMessage' { | ||
| import type SenbirdUIKitGlobal from 'SendbirdUIKitGlobal'; | ||
| interface OOpenChannelOGMessageProps { | ||
| interface OpenChannelOGMessageProps { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thanks
|
|
||
| declare module '@sendbird/uikit-react/ui/OpenChannelUserMessage' { | ||
| import type SenbirdUIKitGlobal from 'SendbirdUIKitGlobal'; | ||
| import type SendbirdUIKitGlobal from 'SendbirdUIKitGlobal'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| (!channel?.isEphemeral && isMessageStatusEnabled) && ( | ||
| <MessageStatus | ||
| className="sendbird-channel-preview__content__upper__last-message-at" | ||
| channel={channel} | ||
| message={channel?.lastMessage as UserMessage | FileMessage} | ||
| isDateSeparatorConsidered={false} | ||
| /> | ||
| ) | ||
| } | ||
| { | ||
| (!channel?.isEphemeral && !isMessageStatusEnabled) && ( | ||
| <Label | ||
| className="sendbird-channel-preview__content__upper__last-message-at" | ||
| type={LabelTypography.CAPTION_3} | ||
| color={LabelColors.ONBACKGROUND_2} | ||
| > | ||
| {utils.getLastMessageCreatedAt({ | ||
| channel, | ||
| locale: dateLocale, | ||
| stringSet, | ||
| })} | ||
| </Label> | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should add tests later
For Internal Contributors
UIKIT-3245
Ephemeral channel support - policy
Description Of Changes
Ephemeral channel policy
Types Of Changes
What types of changes does your code introduce to this project?
Put an
xin the boxes that apply_