Browse Source

create getter

itizawa 6 năm trước cách đây
mục cha
commit
d6a655fffe
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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();