add log when we requested token but didn’t get one

This commit is contained in:
Daniel Gultsch 2022-12-30 09:00:42 +01:00
parent 01624fb13d
commit f5b7fbc441
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -810,8 +810,16 @@ public class XmppConnection implements Runnable {
tokenMechanism = null; tokenMechanism = null;
} }
if (tokenMechanism != null && !Strings.isNullOrEmpty(token)) { if (tokenMechanism != null && !Strings.isNullOrEmpty(token)) {
this.account.setFastToken(tokenMechanism,token); this.account.setFastToken(tokenMechanism, token);
Log.d(Config.LOGTAG,account.getJid().asBareJid()+": storing hashed token "+tokenMechanism); Log.d(
Config.LOGTAG,
account.getJid().asBareJid() + ": storing hashed token " + tokenMechanism);
} else if (this.hashTokenRequest != null) {
Log.w(
Config.LOGTAG,
account.getJid().asBareJid()
+ ": no response to our hashed token request "
+ this.hashTokenRequest);
} }
// a successful resume will not send stream features // a successful resume will not send stream features
if (processNopStreamFeatures) { if (processNopStreamFeatures) {