diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-06-01 11:24:35 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-06-01 11:24:35 +0200 |
commit | 1a4b1f8a2fdac08e3f81123cc117ed10a1bdfbfe (patch) | |
tree | 051eddcb737dbba6477b2e9ac78ff62eb5db26e9 /src/eu/siacs/conversations/entities/MucOptions.java | |
parent | 5d0e1374b27022d41e0ff59449191422aeaf2974 (diff) |
show dialog when no contact in a muc has pgp support
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/entities/MucOptions.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/entities/MucOptions.java b/src/eu/siacs/conversations/entities/MucOptions.java index c1750334b..0f8e35658 100644 --- a/src/eu/siacs/conversations/entities/MucOptions.java +++ b/src/eu/siacs/conversations/entities/MucOptions.java @@ -250,4 +250,22 @@ public class MucOptions { } return primitivLongArray; } + + public boolean pgpKeysInUse() { + for(User user : getUsers()) { + if (user.getPgpKeyId()!=0) { + return true; + } + } + return false; + } + + public boolean everybodyHasKeys() { + for(User user : getUsers()) { + if (user.getPgpKeyId()==0) { + return false; + } + } + return true; + } }
\ No newline at end of file |