Skip to content

Commit d9564fb

Browse files
committed
RU-T45 PR#193 Fixes
1 parent e0d683c commit d9564fb

File tree

5 files changed

+43
-5
lines changed

5 files changed

+43
-5
lines changed

.github/workflows/react-native-cicd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ jobs:
321321
322322
# Fourth pass: Remove specific CodeRabbit lines
323323
cleaned_body="$(printf '%s\n' "$cleaned_body" \
324-
| grep -v '✏️ Tip: You can customize this high-level summary in your review settings\.' \
325-
| grep -v '<!-- This is an auto-generated comment: release notes by coderabbit.ai -->' \
326-
| grep -v '<!-- end of auto-generated comment: release notes by coderabbit.ai -->')"
324+
| (grep -v '✏️ Tip: You can customize this high-level summary in your review settings\.' || true) \
325+
| (grep -v '<!-- This is an auto-generated comment: release notes by coderabbit.ai -->' || true) \
326+
| (grep -v '<!-- end of auto-generated comment: release notes by coderabbit.ai -->' || true))"
327327
328328
# Fifth pass: Trim leading and trailing whitespace/empty lines
329329
cleaned_body="$(printf '%s\n' "$cleaned_body" | sed '/^$/d' | awk 'NF {p=1} p')"

src/services/app-reset.service.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,27 @@ export const resetAllStores = async (): Promise<void> => {
218218
// LiveKit store - await async disconnect, then reset
219219
const liveKitState = useLiveKitStore.getState();
220220
if (liveKitState.isConnected) {
221-
await liveKitState.disconnectFromRoom();
221+
try {
222+
await liveKitState.disconnectFromRoom();
223+
} catch (error) {
224+
logger.error({
225+
message: 'Error disconnecting from LiveKit room during reset',
226+
error,
227+
});
228+
}
222229
}
223230
useLiveKitStore.setState(INITIAL_LIVEKIT_STATE);
224231

225232
// Audio stream store - await async cleanup, then reset
226233
const audioStreamState = useAudioStreamStore.getState();
227-
await audioStreamState.cleanup();
234+
try {
235+
await audioStreamState.cleanup();
236+
} catch (error) {
237+
logger.error({
238+
message: 'Error cleaning up audio stream during reset',
239+
error,
240+
});
241+
}
228242
useAudioStreamStore.setState(INITIAL_AUDIO_STREAM_STATE);
229243

230244
// Bluetooth audio store - reset

src/translations/ar.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"accessibility": {
3+
"action": {
4+
"address": "تفعيل لعرض العنوان على الخريطة",
5+
"email": "تفعيل لإرسال بريد إلكتروني",
6+
"phone": "تفعيل للاتصال برقم الهاتف",
7+
"website": "تفعيل لفتح الموقع الإلكتروني"
8+
}
9+
},
210
"app": {
311
"title": "وحدة ريسغريد"
412
},

src/translations/en.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"accessibility": {
3+
"action": {
4+
"address": "Activate to view address on map",
5+
"email": "Activate to send email",
6+
"phone": "Activate to call phone number",
7+
"website": "Activate to open website"
8+
}
9+
},
210
"app": {
311
"title": "Resgrid Unit"
412
},

src/translations/es.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"accessibility": {
3+
"action": {
4+
"address": "Activar para ver la dirección en el mapa",
5+
"email": "Activar para enviar correo electrónico",
6+
"phone": "Activar para llamar al número de teléfono",
7+
"website": "Activar para abrir el sitio web"
8+
}
9+
},
210
"app": {
311
"title": "Resgrid Unit"
412
},

0 commit comments

Comments
 (0)