Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit d0f8a860 authored by Rafael Tonholo's avatar Rafael Tonholo
Browse files

feat(archive): add snackbar message when archiving is not available for account

parent c482b956
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1778,7 +1778,14 @@ class MessageListFragment :
                    setFlag(item, Flag.FLAGGED, !item.isStarred)
                }

                SwipeAction.ArchiveDisabled -> Unit
                SwipeAction.ArchiveDisabled ->
                    Snackbar
                        .make(
                            requireNotNull(view),
                            R.string.archiving_not_available_for_this_account,
                            Snackbar.LENGTH_LONG,
                        )
                        .show()

                SwipeAction.ArchiveSetupArchiveFolder -> setupArchiveFolderDialogFragmentFactory.show(
                    accountUuid = item.account.uuid,
+1 −0
Original line number Diff line number Diff line
@@ -1090,4 +1090,5 @@ You can keep this message and use it as a backup for your secret key. If you wan
    <string name="settings_ui_telemetry_title">Usage and technical data</string>
    <!-- Description of the "Usage and technical data" setting used in the "data collection" section of the general settings screen -->
    <string name="settings_ui_telemetry_description">Shares performance, usage, hardware and customization data about this app with Mozilla to help us make Thunderbird better</string>
    <string name="archiving_not_available_for_this_account">Archiving is not available for this account.</string>
</resources>