From c08bfa773d6c81cdc6baad04964584af895ffec2 Mon Sep 17 00:00:00 2001 From: cogwheel0 <172976095+cogwheel0@users.noreply.github.com> Date: Mon, 6 Oct 2025 00:15:51 +0530 Subject: [PATCH] refactor: remove redundant socket handler bindings in SocketService - Eliminated unnecessary calls to _bindCoreSocketHandlers() in the SocketService class, streamlining the socket event subscription process. - Improved code clarity and maintainability by reducing redundant method invocations during socket event handling. --- lib/core/services/socket_service.dart | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/core/services/socket_service.dart b/lib/core/services/socket_service.dart index 80aefb9..089bd40 100644 --- a/lib/core/services/socket_service.dart +++ b/lib/core/services/socket_service.dart @@ -154,7 +154,6 @@ class SocketService with WidgetsBindingObserver { requireFocus: requireFocus, handler: handler, ); - _bindCoreSocketHandlers(); return SocketEventSubscription(() => _chatEventHandlers.remove(id)); } @@ -172,7 +171,6 @@ class SocketService with WidgetsBindingObserver { requireFocus: requireFocus, handler: handler, ); - _bindCoreSocketHandlers(); return SocketEventSubscription(() => _channelEventHandlers.remove(id)); }