You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+150
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,155 @@
1
1
# Changelog - v3
2
2
3
+
## [v3.4.0] (Mar 6 2023)
4
+
5
+
### Voice Message
6
+
Voice message is a new type of message and feature that you can use in group channel. You can record your voice on the message input and send it to the channel. Also the messages will be displayed as a new design of the voice message. You are able to use this feature from this version.
7
+
8
+
#### How to turn on/off
9
+
* You can turn this feature on/off using the props `isVoiceMessageEnabled` on the <App /> and <SendbirdProvider /> components. Here is an example.
// Return your custom voice message item component
40
+
}
41
+
returnnull
42
+
}}
43
+
/>
44
+
)
45
+
}
46
+
```
47
+
48
+
#### Limitation & Next step
49
+
* For now, it's not able to customize the inner components of VoiceMessageInput. We are going to provide an interface to customize it in the future. Until that time, you can replace the VoiceMessageInput component using the `renderVoiceMessageIcon` props of MessageInput component.
50
+
51
+
#### What has been changed?
52
+
* Add props `isVoiceMessageEnabled` and `voiceRecord` props to the App, `SendbirdProvider`, and `MessageInput` components, to turn on/off the voice message recording feature
MODAL__VOICE_MESSAGE_INPUT_DISABLED__TITLE_MUTED:'You\'re muted by the operator.',
83
+
MODAL__VOICE_MESSAGE_INPUT_DISABLED__TITLE_FROZEN:'Channel is frozen.',
84
+
}}
85
+
>
86
+
{/* implement custom application */}
87
+
</SendbirdProvider>
88
+
)
89
+
}
90
+
```
91
+
*`BUTTON__OK`: 'OK' → Used on the submit button of pop up modal
92
+
*`MODAL__VOICE_MESSAGE_INPUT_DISABLED__TITLE_MUTED`: 'You\'re muted by the operator.' → Used in an alert pop-up modal
93
+
*`MODAL__VOICE_MESSAGE_INPUT_DISABLED__TITLE_FROZEN`: 'Channel is frozen.' → Used in an alert pop-up modal
94
+
*`VOICE_MESSAGE`: 'Voice Message' → Used in ChannelPreviewItem, QuoteMessage, and MessageSearch to appear that the message type is the voice## External Contributions
95
+
96
+
#### What has been added?
97
+
* Install `lamejs` to convert the audio file to mp3 (iOS support)
* VoiceRecorderProvider: A react context provider component providing `start`, and `stop` functions
115
+
* useVoiceRecorderContext: A react useContext hook of VoiceRecorderProvider
116
+
* useVoiceRecorder: A react hook that provides advanced context, `recordingLimit`, `recordingTime`, `recordingFile`, and `recordingStatus`. Recommend using this hook in the customized components.
* VoicePlayerProvider: A react context provider component providing `play`, and `pause` functions
123
+
* useVoicePlayerContext: A react useContext hook of VoicePlayerProvider
124
+
* useVoicePlayer: A react hook that provides advanced context, `playbackTime`, `duration`, and `playingStatus`. Recommend using this hook in the customized components.
125
+
* utils/isVoiceMessage: A function that you can check if the given message is a voice message
* Add props `renderFileUploadIcon`, `renderVoiceMessageIcon`, and `renderSendMessageIcon` into the `Channel`, `ChannelUI`, and `MessageInput` component
133
+
```javascript
134
+
interface MessageInputProps {
135
+
renderFileUploadIcon?: () =>React.ReactElement;
136
+
renderVoiceMessageIcon?: () =>React.ReactElement;
137
+
renderSendMessageIcon?: () =>React.ReactElement;
138
+
}
139
+
```
140
+
141
+
Fixes:
142
+
* Use ApplicationUserListQuery on ChannelSettings component
143
+
* Fix some visual issues on the normal User Panel of ChannelSettings
144
+
* Indentify faulty images in OG message
145
+
* Add classname: sendbird-og-message-item-body__og-thumbnail__empty to identify faulty images in OG message
0 commit comments