Closed yotsuya closed 6 years ago
This is the PR to fix the behavior of Web.Direct.getUsers and Web.Direct.getTalkRooms when the loggeed-in user belongs to multiple domains. (#48)
Web.Direct.getUsers
Web.Direct.getTalkRooms
getUsers
[me]
getTalkRooms
TalkRoom
talkUsers
me
Web.Direct.Client.setCurrentDomain
clientUsers
clientTalkRooms
Client
direct4b
OK. I will recreate PR.
This is the PR to fix the behavior of
Web.Direct.getUsers
andWeb.Direct.getTalkRooms
when the loggeed-in user belongs to multiple domains. (#48)As-Is
getUsers
returns just[me]
regardless of the actual users.getTalkRooms
returns a list ofTalkRoom
of all domains. However, all of theirtalkUsers
are just[me]
.To-Be
getUsers
returns a list of acquaintances of the current domain. The head of the list should beme
.getTalkRooms
returns a list ofTalkRoom
of the current domain. TheirtalkUsers
should be a list of all members of the talk.TODO
getUsers
getTalkRooms
Web.Direct.Client.setCurrentDomain
updatesclientUsers
andclientTalkRooms
ofClient
direct4b
to print the result ofgetUsers
andgetTalkRooms