Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.ReactNative
Commits
f4118b63
Unverified
Commit
f4118b63
authored
Jul 03, 2020
by
Djorkaeff Alexandre
Committed by
GitHub
Jul 03, 2020
Browse files
[REGRESSION] Audio Recording (#2240)
Co-authored-by:
Diego Mello
<
diegolmello@gmail.com
>
parent
c1f3f89c
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/containers/MessageBox/Recording.js
View file @
f4118b63
...
...
@@ -94,9 +94,6 @@ export default class extends React.PureComponent {
if
(
!
didSucceed
)
{
return
onFinish
&&
onFinish
(
didSucceed
);
}
if
(
isAndroid
)
{
filePath
=
filePath
.
startsWith
(
'
file://
'
)
?
filePath
:
`file://
${
filePath
}
`
;
}
const
fileInfo
=
{
name
:
this
.
name
,
mime
:
'
audio/aac
'
,
...
...
@@ -111,8 +108,9 @@ export default class extends React.PureComponent {
finishAudioMessage
=
async
()
=>
{
try
{
this
.
recording
=
false
;
cons
t
filePath
=
await
AudioRecorder
.
stopRecording
();
le
t
filePath
=
await
AudioRecorder
.
stopRecording
();
if
(
isAndroid
)
{
filePath
=
filePath
.
startsWith
(
'
file://
'
)
?
filePath
:
`file://
${
filePath
}
`
;
const
data
=
await
FileSystem
.
getInfoAsync
(
decodeURIComponent
(
filePath
),
{
size
:
true
});
this
.
finishRecording
(
true
,
filePath
,
data
.
size
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment