Explorar o código

Fix log tag in MessengerController

Danilo Bargen %!s(int64=6) %!d(string=hai) anos
pai
achega
3ad38bf259
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/partials/messenger.ts

+ 2 - 1
src/partials/messenger.ts

@@ -1211,6 +1211,7 @@ class MessengerController {
             }
         }, true);
 
+        const logTag = this.logTag;
         this.webClientService.setReceiverListener({
             onConversationRemoved(receiver: threema.Receiver) {
                 switch ($state.current.name) {
@@ -1228,7 +1229,7 @@ class MessengerController {
                         }
                         break;
                     default:
-                        $log.debug(this.logTag, 'Ignored onRemoved event for state', $state.current.name);
+                        $log.debug(logTag, 'Ignored onRemoved event for state', $state.current.name);
                 }
             },
         });