2.Click on the the button showing up after your swiping gesture
3.There is a snackbar popping out at the bottom with undo action for this operation
4.Go find your archived/trashed email in the archive/trash folder
PS: when you open the app, we are doing a refreshing in the background. Trash/Archive during that time may not work.