Re-add support for special case of 'presence' expiry value.
This commit is contained in:
parent
0c24fbdb06
commit
ab2e43d052
1 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,8 @@ class EventSubscription(ElementBase):
|
|||
|
||||
def get_expiry(self):
|
||||
expiry = self._get_attr('expiry')
|
||||
if expiry.lower() == 'presence':
|
||||
return expiry
|
||||
return xep_0082.parse(expiry)
|
||||
|
||||
def set_expiry(self, value):
|
||||
|
|
Loading…
Reference in a new issue