mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Add revoke remote wipe conversation notification on revoke received
This commit is contained in:
@@ -334,11 +334,25 @@ class ConversationVisitor implements
|
||||
return new ConversationNoticeItem(
|
||||
R.layout.list_item_conversation_notice_out, text, r);
|
||||
default: // REVOKE
|
||||
String revokeText = ctx.getString(R.string.remote_wipe_revoke_sent,
|
||||
contactName.getValue()) + " " + UiUtils
|
||||
.formatDateAbsolute(ctx, r.getMessageExpiry());
|
||||
return new ConversationNoticeItem(
|
||||
R.layout.list_item_conversation_notice_out, revokeText, r);
|
||||
if (r.isLocal()) {
|
||||
String revokeText =
|
||||
ctx.getString(R.string.remote_wipe_revoke_sent,
|
||||
contactName.getValue()) + " " + UiUtils
|
||||
.formatDateAbsolute(ctx,
|
||||
r.getMessageExpiry());
|
||||
return new ConversationNoticeItem(
|
||||
R.layout.list_item_conversation_notice_out,
|
||||
revokeText, r);
|
||||
} else {
|
||||
String revokeText =
|
||||
ctx.getString(R.string.remote_wipe_revoke_received,
|
||||
contactName.getValue()) + " " + UiUtils
|
||||
.formatDateAbsolute(ctx,
|
||||
r.getMessageExpiry());
|
||||
return new ConversationNoticeItem(
|
||||
R.layout.list_item_conversation_notice_out,
|
||||
revokeText, r);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -751,6 +751,7 @@
|
||||
<string name="assigned_wipers">Your assigned trusted wipers</string>
|
||||
<string name="activate_remote_wipe">Activate remote wipe</string>
|
||||
<string name="remote_wipe_revoke_sent">%1$s may no longer activate a remote wipe.</string>
|
||||
<string name="remote_wipe_revoke_received">You can no longer activate a remote wipe for %1$s.</string>
|
||||
|
||||
<!-- activate -->
|
||||
<string name="activity_name_activate_remote_wipe">Activate Remote Wipe</string>
|
||||
|
||||
Reference in New Issue
Block a user