Skip to content

Commit

Permalink
fix(Peer Chat): Null pointer when manual assignment and not grouped (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreykwan authored May 17, 2022
1 parent 9978839 commit c1f49d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ export class PeerChatStudentComponent extends ComponentStudent {
.subscribe(
(peerGroup: PeerGroup) => {
this.isPeerChatWorkgroupsResponseReceived = true;
this.peerGroup = peerGroup;
const peerGroupWorkgroupIds = this.getPeerGroupWorkgroupIds(peerGroup);
this.addTeacherWorkgroupIds(peerGroupWorkgroupIds);
this.setPeerChatWorkgroups(peerGroupWorkgroupIds);
this.getPeerChatComponentStates(peerGroup);
if (peerGroup != null) {
this.peerGroup = peerGroup;
const peerGroupWorkgroupIds = this.getPeerGroupWorkgroupIds(peerGroup);
this.addTeacherWorkgroupIds(peerGroupWorkgroupIds);
this.setPeerChatWorkgroups(peerGroupWorkgroupIds);
this.getPeerChatComponentStates(peerGroup);
}
},
(error) => {
this.isPeerChatWorkgroupsResponseReceived = true;
Expand Down
2 changes: 1 addition & 1 deletion src/messages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -15014,7 +15014,7 @@ If this problem continues, let your teacher know and move on to the next activit
<source>You have new chat messages</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/components/peerChat/peer-chat-student/peer-chat-student.component.ts</context>
<context context-type="linenumber">209</context>
<context context-type="linenumber">211</context>
</context-group>
</trans-unit>
<trans-unit id="6310961320545154131" datatype="html">
Expand Down

0 comments on commit c1f49d6

Please sign in to comment.