fix: maintain room summaries in chat details page (#4716)

This commit is contained in:
ggurdin 2025-11-20 13:43:57 -05:00 committed by GitHub
parent 4ee9dd7c49
commit d3fdd53245
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View file

@ -81,6 +81,10 @@ class ChatDetailsController extends State<ChatDetails>
_loadCourseInfo();
_loadSummaries();
}
if (widget.activeTab == 'course' && oldWidget.activeTab != 'course') {
_loadSummaries();
}
}
@override

View file

@ -27,7 +27,7 @@ class ActivityFinishedStatusMessage extends StatelessWidget {
);
if (!resp.isError) {
context.push(
context.go(
"/rooms/spaces/${controller.room.courseParent!.id}/details?tab=course",
);
}

View file

@ -91,9 +91,7 @@ void chatListHandleSpaceTap(
Room space,
) {
void setActiveSpaceAndCloseChat() {
// push to refresh space details
// https://github.com/pangeachat/client/issues/4292#issuecomment-3426794043
context.push("/rooms/spaces/${space.id}/details");
context.go("/rooms/spaces/${space.id}/details");
}
void autoJoin(Room space) {