Merge branch 'jid-full-fix' into process-one-is-lazy
This commit is contained in:
commit
306b4ff58e
|
@ -54,7 +54,7 @@ func (j *Jid) Full() string {
|
|||
if j.Resource == "" {
|
||||
return j.Bare()
|
||||
} else if j.Node == "" {
|
||||
return j.Node + "/" + j.Resource
|
||||
return j.Domain + "/" + j.Resource
|
||||
} else {
|
||||
return j.Node + "@" + j.Domain + "/" + j.Resource
|
||||
}
|
||||
|
|
|
@ -63,6 +63,7 @@ func TestIncorrectJids(t *testing.T) {
|
|||
func TestFull(t *testing.T) {
|
||||
fullJids := []string{
|
||||
"test@domain.com/my resource",
|
||||
"domain.com/my resource",
|
||||
"test@domain.com",
|
||||
"domain.com",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue