Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/hooks/VoicePlayer/useVoicePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,12 @@ export const useVoicePlayer = ({
play: playVoicePlayer,
pause: pauseVoicePlayer,
stop: stopVoicePlayer,
playbackTime: currentAudioUnit.playbackTime * 1000,
duration: currentAudioUnit.duration * 1000,
// the unit of playbackTime and duration should be millisecond
/**
* The reason why we multiply this by *1000 is,
* The unit of playbackTime and duration should be millisecond
*/
playbackTime: (currentAudioUnit?.playbackTime || 0) * 1000,
duration: (currentAudioUnit?.duration || 0) * 1000,
playingStatus: currentAudioUnit.playingStatus,
});
};
1 change: 0 additions & 1 deletion src/lib/hooks/useOnlineStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function useOnlineStatus(sdk: SendbirdChat, logger: LoggerInterface) {
onReconnectStarted() {
setIsOnline(false);
logger.warning('onReconnectStarted', { isOnline });

},
onReconnectSucceeded() {
setIsOnline(true);
Expand Down
1 change: 1 addition & 0 deletions src/modules/Channel/context/hooks/useHandleReconnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function useHandleReconnect(
prevResultSize: PREV_RESULT_SIZE,
isInclusive: true,
includeReactions: isReactionEnabled,
includeMetaArray: true,
nextResultSize: NEXT_RESULT_SIZE,
};
if (replyType && replyType === 'QUOTE_REPLY') {
Expand Down