diff --git a/components/overlays/SessionProxiesOverlay.vue b/components/overlays/SessionProxiesOverlay.vue index 2851369..77b655e 100644 --- a/components/overlays/SessionProxiesOverlay.vue +++ b/components/overlays/SessionProxiesOverlay.vue @@ -207,6 +207,10 @@ const createSessionProxy = async () => { }; const addSessionProxyFromSeed = async (seed: Uint8Array) => { + const localKeyring = new Keyring({ type: "sr25519", ss58Format: 42 }); + const sessionProxy = localKeyring.addFromSeed(seed, { + name: "fresh", + }); const injector = accountStore.hasInjector ? accountStore.injector : null; const role = incogniteeStore.api.createType( "SessionProxyRole", @@ -217,7 +221,7 @@ const addSessionProxyFromSeed = async (seed: Uint8Array) => { const expiry = Math.floor(expiryDate.getTime()); console.log( "create session proxy " + - proxy.address + + sessionProxy.address + " with role: " + role + " expiry update to: " + diff --git a/components/tabs/MessagingTab.vue b/components/tabs/MessagingTab.vue index b125602..0ffa316 100644 --- a/components/tabs/MessagingTab.vue +++ b/components/tabs/MessagingTab.vue @@ -528,7 +528,9 @@ watch(isInitializing, () => { const filteredLut = computed(() => { if (!conversationAddress.value) return []; return identityLut.filter((entry) => - entry.username.includes(conversationAddress.value), + entry.username + .toLowerCase() + .includes(conversationAddress.value.toLowerCase()), ); }); diff --git a/lib/wellKnownIdentites.ts b/lib/wellKnownIdentites.ts index cc46b67..9a0a501 100644 --- a/lib/wellKnownIdentites.ts +++ b/lib/wellKnownIdentites.ts @@ -16,4 +16,16 @@ export const identities = [ username: "Tester2", address: "13ueD4C3hvyagpap431WTPnNr4spEYCVv8gKr8gKDz88j9f5", }, + { + username: "ExtensionTester1", + address: "1414CvA9uDs9tASKCizPo35JM2a1uWvHqAZtY9dWP45UGzj3", + }, + { + username: "ExtensionTester2", + address: "12mU141fbeoK1N2zd5UEWLgWXfEEL1TAgCNCDe3yppMQy4JM", + }, + { + username: "ExtensionTester3", + address: "15JmfZMWYeTEdBDCErte22Sup5FA6PMMkS9A3KeLkaf4a4HM", + }, ];