Fix old hashes not working anymore in pad

This commit is contained in:
yflory
2017-08-28 13:53:24 +02:00
parent e4a356d873
commit d9bf2abcd8
2 changed files with 9 additions and 0 deletions

View File

@@ -214,6 +214,10 @@ Version 1
Hash.getHashes = function (channel, secret) {
var hashes = {};
if (!secret.keys) {
console.error('e');
return hashes;
}
if (secret.keys.editKeyStr) {
hashes.editHash = getEditHashFromKeys(channel, secret.keys);
}