Switch tabs in notification-screen (#969)
This commit is contained in:
parent
2987149ba5
commit
cd4cd66f61
|
@ -238,9 +238,9 @@ extension NotificationViewController {
|
|||
else { return }
|
||||
|
||||
switch category {
|
||||
case .everything:
|
||||
scrollToPage(.first, animated: true, completion: nil)
|
||||
case .mentions:
|
||||
scrollToPage(.first, animated: true, completion: nil)
|
||||
case .everything:
|
||||
scrollToPage(.last, animated: true, completion: nil)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,8 +16,8 @@ import class CoreDataStack.Notification
|
|||
extension APIService {
|
||||
|
||||
public enum MastodonNotificationScope: Hashable, CaseIterable {
|
||||
case everything
|
||||
case mentions
|
||||
case everything
|
||||
|
||||
public var includeTypes: [MastodonNotificationType]? {
|
||||
switch self {
|
||||
|
|
Loading…
Reference in New Issue