Switch tabs in notification-screen (#969)

This commit is contained in:
Nathan Mattes 2023-03-13 20:37:55 +01:00 committed by GitHub
parent 2987149ba5
commit cd4cd66f61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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)
}
}

View File

@ -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 {