From dda092ad0296373c47bb346efb473b0b4c1e03f3 Mon Sep 17 00:00:00 2001
From: Azarael-Romero <93936271+Azarael-Romero@users.noreply.github.com>
Date: Fri, 16 Aug 2024 16:29:50 -0600
Subject: [PATCH 1/2] feat: add new motorcycle icon (#1151)
---
src/common/images/sprites/event-svg-sprite.svg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/images/sprites/event-svg-sprite.svg b/src/common/images/sprites/event-svg-sprite.svg
index 50864a9e0..b45f6025b 100644
--- a/src/common/images/sprites/event-svg-sprite.svg
+++ b/src/common/images/sprites/event-svg-sprite.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
From 4c95e95940ab07f5873dd3bc19749f6226b6ea70 Mon Sep 17 00:00:00 2001
From: JoshuaVulcan <38018017+JoshuaVulcan@users.noreply.github.com>
Date: Tue, 20 Aug 2024 09:41:49 -0700
Subject: [PATCH 2/2] feat: emitting new profile event to realtime services
---
.../useRealTimeImplementation/index.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/withSocketConnection/useRealTimeImplementation/index.js b/src/withSocketConnection/useRealTimeImplementation/index.js
index 158f476df..9814fd12c 100644
--- a/src/withSocketConnection/useRealTimeImplementation/index.js
+++ b/src/withSocketConnection/useRealTimeImplementation/index.js
@@ -55,7 +55,14 @@ const useRealTimeImplementation = () => {
socket.on('connect', () => {
store.dispatch({ type: SOCKET_HEALTHY_STATUS });
+ const profileId = store.getState().data.selectedUserProfile?.id;
+
socket.emit('authorization', { type: 'authorization', id: 1, authorization: `Bearer ${store.getState().data.token.access_token}` });
+
+ if (profileId) {
+ socket.emit('profile', { profile_id: profileId });
+ }
+
console.log('realtime: connected');
});
socket.on('disconnect', (msg) => {