[android] Show dialog when (pending) contact already exists

If two different people sent the same link, show warning dialog to the
user to prevent a social attack trying to discover contact
relationships.
This commit is contained in:
Torsten Grote
2019-10-15 14:47:42 -03:00
parent 4bf8d4c0e7
commit aa0937e6aa
5 changed files with 117 additions and 18 deletions

View File

@@ -199,7 +199,7 @@
<string name="adding_contact_slow_text">添加此联系人比通常花费了更多时间。\n\n请检查您的联系人是否收到您的链接并已添加您</string>
<string name="offline_state">无网络连接</string>
<string name="duplicate_link_dialog_title">重复的链接</string>
<string name="duplicate_link_dialog_text_1">您已经有此链接的待处理联系人:</string>
<string name="duplicate_link_dialog_text_1">您已经有此链接的待处理联系人:%s</string>
<!--This is a question asking whether two nicknames refer to the same person-->
<string name="duplicate_link_dialog_text_2">%s 和 %s 是同一个人吗?</string>
<!--This is a button for answering that two nicknames do indeed refer to the same person. This

View File

@@ -227,6 +227,7 @@
<string name="offline_state">No Internet connection</string>
<string name="duplicate_link_dialog_title">Duplicate Link</string>
<string name="duplicate_link_dialog_text_1">You already have a pending contact with this link: %s</string>
<string name="duplicate_link_dialog_text_1_contact">You already have a contact with this link: %s</string>
<!-- This is a question asking whether two nicknames refer to the same person -->
<string name="duplicate_link_dialog_text_2">Are %s and %s the same person?</string>
<!-- This is a button for answering that two nicknames do indeed refer to the same person. This