-
Notifications
You must be signed in to change notification settings - Fork 144
Feature/UI kit 3043/integrate voice message #395
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
Feature/UI kit 3043/integrate voice message #395
Conversation
mediaRecorder.ondataavailable = (e) => {// when recording stops | ||
// Generate audio file | ||
const audioFile = new File([e.data], 'I am file name', { | ||
const audioFile = new File([e.data], 'Voice message', { |
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.
Voice message need extension, no?
isVoiceMessageEnabled: PropTypes.bool, | ||
voiceRecord: PropTypes.shape({ | ||
maxRecordingTime: PropTypes.number, | ||
minRecordingTime: PropTypes.number, | ||
}), |
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.
discuss: isnt it better for this prop to be in Channel?
.sendbird-voice-message-input-wrapper .sendbird-voice-message-input__indicator { | ||
height: 40px; | ||
} |
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.
Isnt .sendbird-voice-message-input__indicator
enough?
import MessageItemReactionMenu from '../../../../ui/MessageItemReactionMenu'; | ||
import Label, { LabelTypography, LabelColors } from '../../../../ui/Label'; | ||
import { getClassName, getSenderName, getUIKitMessageType, getUIKitMessageTypes, isOGMessage, isTextMessage, isThumbnailMessage } from '../../../../utils'; | ||
import { getClassName, getSenderName, getUIKitMessageType, getUIKitMessageTypes, isOGMessage, isTextMessage, isThumbnailMessage, isVoiceMessage } from '../../../../utils'; |
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.
split into newline pls, sorry, I should have added lint ~
For Internal Contributors
UIKIT-3043
Description Of Changes
Add a brief description of the changes that you have involved in this PR
Types Of Changes
What types of changes does your code introduce to this project?
Put an
x
in the boxes that apply_