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

(cherry picked from commit f5b7fbc441d5d345841ee6669ab3c6509ddf551e)
This commit is contained in:
Daniel Gultsch 2022-12-30 09:00:42 +01:00 committed by Arne
parent 361aa3702e
commit c72d392bf3

View file

@ -863,8 +863,16 @@ public class XmppConnection implements Runnable {
tokenMechanism = null;
}
if (tokenMechanism != null && !Strings.isNullOrEmpty(token)) {
this.account.setFastToken(tokenMechanism,token);
Log.d(Config.LOGTAG,account.getJid().asBareJid()+": storing hashed token "+tokenMechanism);
this.account.setFastToken(tokenMechanism, token);
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
if (processNopStreamFeatures) {