matcher: fix idsender typing
This commit is contained in:
parent
ed3bb878a7
commit
0971bab30a
1 changed files with 5 additions and 3 deletions
|
@ -10,6 +10,8 @@ from slixmpp.xmlstream.stanzabase import StanzaBase
|
||||||
from slixmpp.jid import JID
|
from slixmpp.jid import JID
|
||||||
from slixmpp.types import TypedDict
|
from slixmpp.types import TypedDict
|
||||||
|
|
||||||
|
from typing import Dict
|
||||||
|
|
||||||
|
|
||||||
class CriteriaType(TypedDict):
|
class CriteriaType(TypedDict):
|
||||||
self: JID
|
self: JID
|
||||||
|
@ -37,13 +39,13 @@ class MatchIDSender(MatcherBase):
|
||||||
selfjid = self._criteria['self']
|
selfjid = self._criteria['self']
|
||||||
peerjid = self._criteria['peer']
|
peerjid = self._criteria['peer']
|
||||||
|
|
||||||
allowed = {}
|
allowed: Dict[str, bool] = {}
|
||||||
allowed[''] = True
|
allowed[''] = True
|
||||||
allowed[selfjid.bare] = True
|
allowed[selfjid.bare] = True
|
||||||
allowed[selfjid.host] = True
|
allowed[selfjid.domain] = True
|
||||||
allowed[peerjid.full] = True
|
allowed[peerjid.full] = True
|
||||||
allowed[peerjid.bare] = True
|
allowed[peerjid.bare] = True
|
||||||
allowed[peerjid.host] = True
|
allowed[peerjid.domain] = True
|
||||||
|
|
||||||
_from = xml['from']
|
_from = xml['from']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue