2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-03 23:15:33 +00:00

komrade update!

This commit is contained in:
quadrismegistus 2020-09-17 19:18:20 +01:00
parent 2840f84a22
commit 96674fdd75
3 changed files with 4 additions and 2 deletions

View File

@ -448,10 +448,12 @@ class KomradeX(Caller):
# update inbox # update inbox
new_inbox = list(id2post.keys()) new_inbox = list(id2post.keys())
self.log('new_inbox ->',new_inbox)
inbox = self.get_inbox_crypt( inbox = self.get_inbox_crypt(
prefix=inbox_prefix prefix=inbox_prefix
) )
inbox.prepend(new_inbox) inbox.prepend(new_inbox)
self.log('new vals =',inbox.values)
# update posts # update posts
for post_id,post in id2post.items(): for post_id,post in id2post.items():

View File

@ -113,7 +113,7 @@ class TheOperator(Operator):
# self.log('msg_d',msg_d) # self.log('msg_d',msg_d)
msg_obj = Message(msg_d) msg_obj = Message(msg_d)
self.log(f'Decoding the binary, I discovered an encrypted message from {self.phone}\n: {msg_obj}') # self.log(f'Decoding the binary, I discovered an encrypted message from {self.phone}\n: {msg_obj}')
# decrypt? # decrypt?
msg_obj.decrypt() msg_obj.decrypt()

View File

@ -65,7 +65,7 @@ class TheTelephone(Operator):
from komrade.backend.messages import Message from komrade.backend.messages import Message
resp_msg_obj = Message(resp_msg_d) resp_msg_obj = Message(resp_msg_d)
# res = resp_msg_b_unsealed # res = resp_msg_b_unsealed
self.log('Decoding binary, message discovered:\n',resp_msg_obj) # self.log('Decoding binary, message discovered:\n',resp_msg_obj)
# decrypt # decrypt
# resp_msg_obj.decrypt() # resp_msg_obj.decrypt()