Currently we don't undo local operations when a remote operation fails. For example, when a user deletes a message, we move the local copy to the local trash folder, then try to perform the move operation on the server. If that remote operation fails, we don't move the local message back to the local source folder so the local state reflects the (unchanged) state on the server.
Currently we don't undo local operations when a remote operation fails. For example, when a user deletes a message, we move the local copy to the local trash folder, then try to perform the move operation on the server. If that remote operation fails, we don't move the local message back to the local source folder so the local state reflects the (unchanged) state on the server.
Related: #1058