fix: Fix connect with empty resource
We recently made the jid validation and creation functions more strict. So this is a sideffect of it. We need to use `jid_fulljid_or_barejid` instead of jidp->fulljid here since it now treats just the barejid not as a fulljid. Ref:09757da5dfRef:f251cc8bb3Ref:fa64b135dfSigned-off-by: Michael Vetter <jubalh@iodoru.org>
This commit is contained in:
@@ -117,7 +117,7 @@ session_connect_with_account(const ProfAccount* const account)
|
||||
auto_char char* jid = NULL;
|
||||
if (account->resource) {
|
||||
auto_jid Jid* jidp = jid_create_from_bare_and_resource(account->jid, account->resource);
|
||||
jid = strdup(jidp->fulljid);
|
||||
jid = strdup(jid_fulljid_or_barejid(jidp));
|
||||
} else {
|
||||
jid = strdup(account->jid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user