Skip to content

Commit e1bb8f8

Browse files
committed
fix: Remove snooze thread from draggable action
1 parent a3d94ff commit e1bb8f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Mail/Views/MoveEmailView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct MoveEmailView: View {
4747
self.originFolder = originFolder
4848
self.completion = completion
4949
_viewModel =
50-
StateObject(wrappedValue: FolderListViewModel(mailboxManager: mailboxManager) { $0.isWritable })
50+
StateObject(wrappedValue: FolderListViewModel(mailboxManager: mailboxManager) { $0.isWritable })
5151
}
5252

5353
var body: some View {

MailCore/Models/Folder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public class Folder: Object, Codable, Comparable, Identifiable {
188188
@Persisted public var threadsSource: Folder?
189189
@Persisted public var associatedFolders: RealmSwift.List<Folder>
190190

191-
@Persisted public var isWritable: Bool = true
191+
@Persisted public var isWritable = true
192192

193193
public var listChildren: AnyRealmCollection<Folder>? {
194194
children.isEmpty ? nil : AnyRealmCollection(children)

MailCore/Models/Thread.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public class Thread: Object, Decodable, Identifiable {
131131
}
132132

133133
public var isDraggable: Bool {
134-
!isSnoozed && !containsOnlyScheduledDrafts && !shouldPresentAsDraft
134+
!containsOnlyScheduledDrafts && !shouldPresentAsDraft
135135
}
136136

137137
public func updateUnseenMessages() {

0 commit comments

Comments
 (0)