You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) Use `ES6` syntax to rewrite `readMessages`/`unreadMessages` instead
of using index for a whole array.
2) Use Promise.all to wrap the mapping from read/unread messages and do
Promise.all to await to save time.
0 commit comments