From 79975710e40f5941ee12b41d0a3c77a90c0c5fea Mon Sep 17 00:00:00 2001 From: Danish Ahmed Mirza Date: Tue, 14 Jun 2022 23:38:21 +0530 Subject: [PATCH] Add file name and other info to track --- app/containers/message/Components/Audio/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/containers/message/Components/Audio/index.tsx b/app/containers/message/Components/Audio/index.tsx index 691d9e9fb..56d0ad867 100644 --- a/app/containers/message/Components/Audio/index.tsx +++ b/app/containers/message/Components/Audio/index.tsx @@ -122,7 +122,14 @@ IMessageAudioProps) => { setLoading(true); try { - await TrackPlayer.add([{ url: `${url}?rc_uid=${user.id}&rc_token=${user.token}` }]); + await TrackPlayer.add([ + { + url: `${url}?rc_uid=${user.id}&rc_token=${user.token}`, + title: file.title, + artist: file.author_name, + duration + } + ]); } catch { // Do nothing }