Browse Source

Fix log tag in MessengerController

Danilo Bargen 6 years ago
parent
commit
3ad38bf259
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/partials/messenger.ts

+ 2 - 1
src/partials/messenger.ts

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