Skip to content

Commit

Permalink
fix initial session proxy creation
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Dec 13, 2024
1 parent 1f7f9e3 commit 8816197
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
6 changes: 5 additions & 1 deletion components/overlays/SessionProxiesOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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: " +
Expand Down
4 changes: 3 additions & 1 deletion components/tabs/MessagingTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
);
});
Expand Down
12 changes: 12 additions & 0 deletions lib/wellKnownIdentites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,16 @@ export const identities = [
username: "Tester2",
address: "13ueD4C3hvyagpap431WTPnNr4spEYCVv8gKr8gKDz88j9f5",
},
{
username: "ExtensionTester1",
address: "1414CvA9uDs9tASKCizPo35JM2a1uWvHqAZtY9dWP45UGzj3",
},
{
username: "ExtensionTester2",
address: "12mU141fbeoK1N2zd5UEWLgWXfEEL1TAgCNCDe3yppMQy4JM",
},
{
username: "ExtensionTester3",
address: "15JmfZMWYeTEdBDCErte22Sup5FA6PMMkS9A3KeLkaf4a4HM",
},
];

0 comments on commit 8816197

Please sign in to comment.