Philipp Hörist pushed to branch master at gajim / python-nbxmpp

Commits:

1 changed file:

Changes:

  • nbxmpp/protocol.py
    ... ... @@ -700,9 +700,7 @@ class JID:
    700 700
         def new_as_bare(self) -> JID:
    
    701 701
             if self.resource is None:
    
    702 702
                 return self
    
    703
    -        new = asdict(self)
    
    704
    -        new.pop('resource')
    
    705
    -        return JID(**new)
    
    703
    +        return JID.from_string(self.bare)
    
    706 704
     
    
    707 705
         def bare_match(self, other: Union[str, JID]) -> bool:
    
    708 706
             if isinstance(other, str):