Sign empty status

This commit is contained in:
fiaxh 2015-11-09 01:07:30 +00:00
parent fac1d4e0bd
commit c7a519498a
2 changed files with 1 additions and 3 deletions

View File

@ -56,7 +56,6 @@ public class PresenceGenerator extends AbstractGenerator {
packet.setFrom(account.getJid()); packet.setFrom(account.getJid());
String sig = account.getPgpSignature(); String sig = account.getPgpSignature();
if (sig != null) { if (sig != null) {
packet.addChild("status").setContent("online");
packet.addChild("x", "jabber:x:signed").setContent(sig); packet.addChild("x", "jabber:x:signed").setContent(sig);
} }
String capHash = getCapHash(); String capHash = getCapHash();

View File

@ -476,8 +476,7 @@ public abstract class XmppActivity extends Activity {
if (account.getPgpId() == -1) { if (account.getPgpId() == -1) {
choosePgpSignId(account); choosePgpSignId(account);
} else { } else {
xmppConnectionService.getPgpEngine().generateSignature(account, xmppConnectionService.getPgpEngine().generateSignature(account, "", new UiCallback<Account>() {
"online", new UiCallback<Account>() {
@Override @Override
public void userInputRequried(PendingIntent pi, public void userInputRequried(PendingIntent pi,