Skip to content

Conversation

@HoonBaek
Copy link
Contributor

@HoonBaek HoonBaek commented Mar 7, 2023

For Internal Contributors

UIKIT-3245
Ephemeral channel support - policy

Description Of Changes

Ephemeral channel policy

  • Group channel list
    • Remove the message receipt status (channel preview)
    • Remove the unread message count (channel preview)
  • Group channel
    • Remove the message edit
    • Remove the message delete
    • Remove the message reactions
    • Remove the message receipt status (message)
    • Remove the message reply (quote_reply, thread)
  • Group channel settings
    • Remove the search in channel
  • Open channel
    • Remove the message edit
    • Remove the message delete

Types Of Changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply_

  • Bugfix
  • New feature
  • Documentation (correction or otherwise)
  • Cosmetics (whitespace, appearance (ex) Prettier)
  • Build configuration
  • Improvement (refactor code)

@HoonBaek HoonBaek requested a review from sravan-s March 7, 2023 10:44
@HoonBaek HoonBaek self-assigned this Mar 7, 2023
renderFileUploadIcon?: () => React.ReactElement;
renderVoiceMessageIcon?: () => React.ReactElement;
renderSendMessageIcon?: () => React.ReactElement;
renderFileUploadIcon?: () => React.ReactElement;
Copy link
Contributor

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 {
Copy link
Contributor

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';
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Comment on lines +143 to +165
(!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>
)
Copy link
Contributor

Choose a reason for hiding this comment

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

should add tests later

@HoonBaek HoonBaek merged commit 7f42d2f into main Mar 10, 2023
@HoonBaek HoonBaek deleted the fix/UIKIT-3245/Operate-ephemeral-channel branch March 10, 2023 00:26
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.

4 participants