mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
added warning when public keys are missing
This commit is contained in:
parent
304f8672d9
commit
8ea73feec4
@ -232,4 +232,5 @@
|
|||||||
<string name="server_info_stream_management">Stream Management</string>
|
<string name="server_info_stream_management">Stream Management</string>
|
||||||
<string name="hours">hours</string>
|
<string name="hours">hours</string>
|
||||||
<string name="mins">mins</string>
|
<string name="mins">mins</string>
|
||||||
|
<string name="missing_public_keys">Missing public key announcements</string>
|
||||||
</resources>
|
</resources>
|
@ -34,6 +34,7 @@ import android.text.Editable;
|
|||||||
import android.text.Selection;
|
import android.text.Selection;
|
||||||
import android.util.DisplayMetrics;
|
import android.util.DisplayMetrics;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import android.view.Gravity;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
@ -714,6 +715,11 @@ public class ConversationFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (conversation.getMucOptions().pgpKeysInUse()) {
|
if (conversation.getMucOptions().pgpKeysInUse()) {
|
||||||
|
if (!conversation.getMucOptions().everybodyHasKeys()) {
|
||||||
|
Toast warning = Toast.makeText(getActivity(), R.string.missing_public_keys, Toast.LENGTH_LONG);
|
||||||
|
warning.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
|
||||||
|
warning.show();
|
||||||
|
}
|
||||||
activity.encryptTextMessage();
|
activity.encryptTextMessage();
|
||||||
} else {
|
} else {
|
||||||
showNoPGPKeyDialog(true,new DialogInterface.OnClickListener() {
|
showNoPGPKeyDialog(true,new DialogInterface.OnClickListener() {
|
||||||
|
Loading…
Reference in New Issue
Block a user