Fix from_server buglet in get_keys_from_perspectives

make sure we store the name of the server the keys came from, rather than the
origin server, after doing a fetch-from-perspectives.
This commit is contained in:
Richard van der Hoff 2019-04-03 16:21:12 +01:00
parent 7fc1e17f4c
commit 7d2a0c848e
3 changed files with 3 additions and 1 deletions

View file

@ -652,7 +652,7 @@ class Keyring(object):
self.store.store_server_keys_json,
server_name=server_name,
key_id=key_id,
from_server=server_name,
from_server=from_server,
ts_now_ms=time_now_ms,
ts_expires_ms=ts_valid_until_ms,
key_json_bytes=signed_key_json_bytes,