From 0a6de5d83a3e68ca0bdf70fbcf38e9de57a195ec Mon Sep 17 00:00:00 2001 From: AhmedShab Date: Sun, 30 Apr 2017 15:10:04 +1200 Subject: [PATCH 1/4] reverted back and added my fix --- src/redux/modules/audioplayer.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/redux/modules/audioplayer.js b/src/redux/modules/audioplayer.js index 757a67311..51f3dc3dc 100644 --- a/src/redux/modules/audioplayer.js +++ b/src/redux/modules/audioplayer.js @@ -15,9 +15,9 @@ import { TOGGLE_SCROLL, UPDATE, // LOAD, - LOAD_SUCCESS, + LOAD_SUCCESS // LOAD_FAIL - } from 'redux/constants/audioplayer.js'; +} from 'redux/constants/audioplayer.js'; import { LOAD as VERSES_LOAD, @@ -33,6 +33,7 @@ const initialState = { currentVerse: null, currentWord: null, currentTime: 0, + duration: 1, isPlaying: false, repeat: { from: undefined, @@ -212,7 +213,9 @@ export default function reducer(state = initialState, action = {}) { if (!state.segments[chapterId][nextId].words[position]) return state; - const currentTime = state.segments[chapterId][nextId].words[position].startTime; + const currentTime = + state.segments[chapterId][nextId].words[position].startTime; + const endTime = state.segments[chapterId][nextId].words[position].endTime; currentFile.currentTime = currentTime; From 1a84bc2ed018b3c3f7153f9ee12127da7fc289c5 Mon Sep 17 00:00:00 2001 From: AhmedShab Date: Sun, 30 Apr 2017 20:53:17 +1200 Subject: [PATCH 2/4] =?UTF-8?q?Revert=20"Locale=20name=20changed=20as=20Fr?= =?UTF-8?q?an=C3=A7ais=20(#758)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit bfb0d75dae43d908e1bc87dcaafb447eb6bbdfac. --- src/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.js b/src/config.js index ccd1bdecc..41c6cc173 100644 --- a/src/config.js +++ b/src/config.js @@ -19,7 +19,7 @@ const config = { sentryServer: process.env.SENTRY_KEY_SERVER, facebookAppId: process.env.FACEBOOK_APP_ID, // Supported locales - locales: { en: 'English', ar: 'العربية', ur: 'اردو', id: 'Bahasa Indonesia', tr: 'Türkçe', fr: 'Français' }, + locales: { en: 'English', ar: 'العربية', ur: 'اردو', id: 'Bahasa Indonesia', tr: 'Türkçe', fr: 'Langue du Site' }, defaultLocale: 'en', app: { head: { From 91be4aaa35864ae714de33b2c9f38b668858c536 Mon Sep 17 00:00:00 2001 From: AhmedShab Date: Sun, 30 Apr 2017 20:54:34 +1200 Subject: [PATCH 3/4] =?UTF-8?q?Revert=20"Revert=20"Locale=20name=20changed?= =?UTF-8?q?=20as=20Fran=C3=A7ais=20(#758)""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 1a84bc2ed018b3c3f7153f9ee12127da7fc289c5. --- src/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.js b/src/config.js index 41c6cc173..ccd1bdecc 100644 --- a/src/config.js +++ b/src/config.js @@ -19,7 +19,7 @@ const config = { sentryServer: process.env.SENTRY_KEY_SERVER, facebookAppId: process.env.FACEBOOK_APP_ID, // Supported locales - locales: { en: 'English', ar: 'العربية', ur: 'اردو', id: 'Bahasa Indonesia', tr: 'Türkçe', fr: 'Langue du Site' }, + locales: { en: 'English', ar: 'العربية', ur: 'اردو', id: 'Bahasa Indonesia', tr: 'Türkçe', fr: 'Français' }, defaultLocale: 'en', app: { head: { From 86df418243acbff5ba7670e7c4480d4abfb842a6 Mon Sep 17 00:00:00 2001 From: AhmedShab Date: Sun, 30 Apr 2017 21:00:09 +1200 Subject: [PATCH 4/4] not sure why it had this spacing issue