Skip to content

Commit 634ab07

Browse files
committed
fix: include info/show command in both code and README
1 parent 6c29cc9 commit 634ab07

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Send commands as text messages in chats to interact with
7777
the middleware. All command messages will not be
7878
delivered to slave channel.
7979

80-
* ``gpg`info``: Show the key fingerprint used for this chat.
80+
* ``gpg`info`` or ``gpg`show``: Show the key fingerprint used for this chat.
8181
* ``gpg`search query``: Search for a key from the key server.
8282
* ``gpg`bind fingerprinthex``: Use key for specified fingerprint for a chat.
8383
* ``gpg`clear``: Do not encrypt messages sent to this chat.

efb_gpg_middleware/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ def process_message(self, message: Message) -> Optional[Message]:
8080
self.logger.debug("[%s] is a text message.", message.uid)
8181
chat_key = (message.chat.module_id, message.chat.uid)
8282
is_self = isinstance(message.author, SelfChatMember)
83-
if message.text and message.text.startswith("gpg`show") and is_self:
83+
if message.text and (
84+
message.text.startswith("gpg`show") or
85+
message.text.startswith("gpg`info")
86+
) and is_self:
8487
self.logger.debug("[%s] is a text message.", message.uid)
8588
if chat_key in self.mappings:
8689
text = self._("This chat has GPG key: {0}").format(self.mappings[chat_key])

efb_gpg_middleware/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.1.0"
1+
__version__ = "1.1.1"

0 commit comments

Comments
 (0)