From 1a4b1f8a2fdac08e3f81123cc117ed10a1bdfbfe Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Sun, 1 Jun 2014 11:24:35 +0200 Subject: show dialog when no contact in a muc has pgp support --- src/eu/siacs/conversations/entities/MucOptions.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/eu/siacs/conversations/entities') 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 -- cgit v1.2.3