Re-add support for special case of 'presence' expiry value.
This commit is contained in:
parent
0c24fbdb06
commit
ab2e43d052
@ -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 New Issue
Block a user