Skip to content

Commit

Permalink
Refresh room list when room is end or not found
Browse files Browse the repository at this point in the history
  • Loading branch information
vince-hz committed Feb 21, 2024
1 parent 81f58fe commit a76c152
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Flat/Modules/ClassRoom/ClassroomCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ class ClassroomCoordinator: NSObject {
controller?.showAlertWith(message: error.localizedDescription)

if let flatError = error as? FlatApiError {
if flatError == .RoomNotBeginAndAddList {
if flatError == .RoomNotBeginAndAddList ||
flatError == .RoomIsEnded ||
flatError == .RoomNotFound
{
NotificationCenter.default.post(name: classRoomListNeedRefreshNotificationName, object: nil)
}
}
Expand Down

0 comments on commit a76c152

Please sign in to comment.