Commit 0971bab3 authored by mathieui's avatar mathieui

matcher: fix idsender typing

parent ed3bb878
......@@ -10,6 +10,8 @@ from slixmpp.xmlstream.stanzabase import StanzaBase
from slixmpp.jid import JID
from slixmpp.types import TypedDict
from typing import Dict
class CriteriaType(TypedDict):
self: JID
......@@ -37,13 +39,13 @@ class MatchIDSender(MatcherBase):
selfjid = self._criteria['self']
peerjid = self._criteria['peer']
allowed = {}
allowed: Dict[str, bool] = {}
allowed[''] = True
allowed[selfjid.bare] = True
allowed[selfjid.host] = True
allowed[selfjid.domain] = True
allowed[peerjid.full] = True
allowed[peerjid.bare] = True
allowed[peerjid.host] = True
allowed[peerjid.domain] = True
_from = xml['from']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment