From 6938ef8676a94eeba64aee5ac755198c609a9fb4 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sat, 18 Apr 2020 15:15:38 -0400 Subject: [PATCH] trigger setLastSeen on all actions --- services/gunDB/Mediator/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/gunDB/Mediator/index.js b/services/gunDB/Mediator/index.js index 4a3cafa4..b40fe42b 100644 --- a/services/gunDB/Mediator/index.js +++ b/services/gunDB/Mediator/index.js @@ -442,6 +442,10 @@ class Mediator { this.socket.on(IS_GUN_AUTH, this.isGunAuth) this.socket.on(Action.SET_LAST_SEEN_APP, this.setLastSeenApp) + + Object.values(Action).forEach(actionConstant => + this.socket.on(actionConstant, this.setLastSeenApp) + ) } /** @param {SimpleSocket} socket */