aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/entities/MucOptions.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-06-01 11:24:35 +0200
committeriNPUTmice <daniel@gultsch.de>2014-06-01 11:24:35 +0200
commit1a4b1f8a2fdac08e3f81123cc117ed10a1bdfbfe (patch)
tree051eddcb737dbba6477b2e9ac78ff62eb5db26e9 /src/eu/siacs/conversations/entities/MucOptions.java
parent5d0e1374b27022d41e0ff59449191422aeaf2974 (diff)
show dialog when no contact in a muc has pgp support
Diffstat (limited to 'src/eu/siacs/conversations/entities/MucOptions.java')
-rw-r--r--src/eu/siacs/conversations/entities/MucOptions.java18
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 c1750334..0f8e3565 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