Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed May 30, 2024
1 parent 3271e54 commit 179b3e6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions hivemind_bus_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,7 @@ def on_message(self, *args):
def _handle_hive_protocol(self, message: HiveMessage):
# LOG.debug(f"received HiveMind message: {message.msg_type}")
if message.msg_type == HiveMessageType.BUS:
pload = message.payload
if pload.msg_type == "hive.identity_encrypted":
try:
pload = self.decrypt(pload)
except:
LOG.info("Failed to decrypt PGP message, not for us")
return
self.internal_bus.emit(pload)
self.internal_bus.emit(message.payload)
self.emitter.emit(message.msg_type, message) # hive message

def emit(self, message: Union[MycroftMessage, HiveMessage]):
Expand Down

0 comments on commit 179b3e6

Please sign in to comment.