Fix deleting messages from archive

This commit is contained in:
Christian Basler 2018-02-27 06:43:45 +01:00
parent d8d5f70b37
commit d7b7b11cdf

View File

@ -66,6 +66,10 @@ object Singleton {
// work-around for messages that are deleted from unread, which already have the unread label removed
swipeableMessageAdapter.remove(message)
}
label == AndroidLabelRepository.LABEL_ARCHIVE && !added.isEmpty() -> {
// work-around for messages in archive, which isn't an actual label but an absence of labels
swipeableMessageAdapter.remove(message)
}
added.contains(label) -> {
// in most cases, top should be the correct position, but time will show if
// the message should be properly sorted in