-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to create multiple direct messages at different classification levels #68
Comments
Created branch feature/chat-locker-68 |
This is turning into an interesting issue... In order for this to work, the 'chatRoomItem' template needs to know the security banner text for a room (in order to display it in the left pane), and also the other member of the direct message (so it knows whether or not there are multiple direct messages with the same person). Unfortunately, the template only has access to the ChatSubscription document, which only contains the room id, room type, and some timestamps. Further, since the client does not maintain Meteor subscriptions to all ChatRooms, this information cannot be easily looked up without jumping through some hoops.
For now, I've (mostly) gotten it to work with the second option, but I don't know if that's the best way to go. I'll push my changes to the branch once I've ironed out a few kinks. In the meantime, any input would be appreciated. |
Can we not just load all the users rooms and subscriptions at login and keep them reactive? That way we don't have to go back to server multiple times or duplicate object values like Reid mentions we have now. |
Yes we can. I had attempted to do just that when I was working on the search capability, but was unsuccessful. However, I just figured it out :) |
Awesome! |
Merged branch feature/chat-locker-68 |
Acceptance Criteria:
The text was updated successfully, but these errors were encountered: