Implement undo snackbar when deleting messages by swiping.

When swiping away a message it is only removed from the local message
lists and a snackbar appears. When the snackbar is dismissed or the user
deletes another message the delete request is sent to the server. If the
user presses "undo" on the snackbar the message is reinserted into the
local lists at its previous position.
This commit is contained in:
leopoldsedev
2020-02-11 23:35:37 +01:00
committed by Jannis Mattheis
parent 1d0ec1fe30
commit c22c8c1417
6 changed files with 149 additions and 26 deletions

View File

@@ -25,6 +25,8 @@
<string name="grouped_message">Received %d messages while being disconnected</string>
<string name="delete_all">Delete all</string>
<string name="delete_logs">Delete logs</string>
<string name="snackbar_deleted">Message deleted</string>
<string name="snackbar_undo">Undo</string>
<string name="all_messages">All Messages</string>
<string name="logs">Logs</string>
<string name="message_image_desc">The image of a message</string>