瀏覽代碼

Fix log tag in MessengerController

Danilo Bargen 6 年之前
父節點
當前提交
3ad38bf259
共有 1 個文件被更改,包括 2 次插入1 次删除
  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);
                 }
             },
         });