Explorar o código

create getter

itizawa %!s(int64=6) %!d(string=hai) anos
pai
achega
d6a655fffe
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/client/js/services/AppContainer.js

+ 5 - 0
src/client/js/services/AppContainer.js

@@ -218,6 +218,11 @@ export default class AppContainer extends Container {
     });
   }
 
+  getCurrentUser() {
+    const currentUser = this.findUser(this.me);
+    return currentUser;
+  }
+
   fetchUsers() {
     const interval = 1000 * 60 * 15; // 15min
     const currentTime = new Date();