FIX: getTopicKey must be able to handle imported CryptoKeys.

FIX: getTopicKey must be able to handle imported CryptoKeys.

diff --git a/assets/javascripts/lib/discourse.js.es6 b/assets/javascripts/lib/discourse.js.es6
index 46ce70c..afc37c6 100644
--- a/assets/javascripts/lib/discourse.js.es6
+++ b/assets/javascripts/lib/discourse.js.es6
@@ -113,6 +113,8 @@ export function getTopicKey(topicId) {
 
   if (!key) {
     return Ember.RSVP.Promise.reject();
+  } else if (key instanceof CryptoKey) {
+    return Ember.RSVP.Promise.resolve(key);
   } else if (!(key instanceof Promise || key instanceof Ember.RSVP.Promise)) {
     topicKeys[topicId] = getPrivateKey().then(privKey =>
       importKey(key, privKey)

GitHub sha: 8cc80dbf