Commit a2e89ef2 authored by Tijmen de Mes's avatar Tijmen de Mes

Strip sip: from public keys

parent 2f815c25
...@@ -553,7 +553,7 @@ class MessageManager(object, metaclass=Singleton): ...@@ -553,7 +553,7 @@ class MessageManager(object, metaclass=Singleton):
print(f'-- Saving public key for {uri}') print(f'-- Saving public key for {uri}')
settings = SIPSimpleSettings() settings = SIPSimpleSettings()
id = str(uri).replace('/', '_') id = str(uri).replace('/', '_').replace('sip:', '')
directory = settings.chat.keys_directory.normalized directory = settings.chat.keys_directory.normalized
filename = os.path.join(directory, id + '.pubkey') filename = os.path.join(directory, id + '.pubkey')
makedirs(directory) makedirs(directory)
......
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