Mercurial > libervia-backend
comparison libervia/backend/plugins/plugin_xep_0428.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | a1f7040b5a15 |
children |
comparison
equal
deleted
inserted
replaced
4269:64a85ce8be70 | 4270:0d7bb4df2343 |
---|---|
48 def __init__(self, host): | 48 def __init__(self, host): |
49 log.info(_("XEP-0428 (Fallback Indication) plugin initialization")) | 49 log.info(_("XEP-0428 (Fallback Indication) plugin initialization")) |
50 host.register_namespace("fallback", NS_FALLBACK) | 50 host.register_namespace("fallback", NS_FALLBACK) |
51 | 51 |
52 def add_fallback_elt( | 52 def add_fallback_elt( |
53 self, | 53 self, message_elt: domish.Element, msg: Optional[str] = None |
54 message_elt: domish.Element, | |
55 msg: Optional[str] = None | |
56 ) -> None: | 54 ) -> None: |
57 """Add the fallback indication element | 55 """Add the fallback indication element |
58 | 56 |
59 @param message_elt: <message> element where the indication must be | 57 @param message_elt: <message> element where the indication must be |
60 set | 58 set |