Skip to content

Commit 3067b99

Browse files
committed
Test without encryption
1 parent 8c99f71 commit 3067b99

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

src/components.d.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ export namespace Components {
7575

7676
interface AppSettings {}
7777
interface AppSettingsAttributes extends StencilHTMLAttributes {}
78-
79-
interface AppSignin {}
80-
interface AppSigninAttributes extends StencilHTMLAttributes {}
8178
}
8279

8380
declare global {
@@ -90,7 +87,6 @@ declare global {
9087
'AppPhotos': Components.AppPhotos;
9188
'AppRoot': Components.AppRoot;
9289
'AppSettings': Components.AppSettings;
93-
'AppSignin': Components.AppSignin;
9490
}
9591

9692
interface StencilIntrinsicElements {
@@ -102,7 +98,6 @@ declare global {
10298
'app-photos': Components.AppPhotosAttributes;
10399
'app-root': Components.AppRootAttributes;
104100
'app-settings': Components.AppSettingsAttributes;
105-
'app-signin': Components.AppSigninAttributes;
106101
}
107102

108103

@@ -154,12 +149,6 @@ declare global {
154149
new (): HTMLAppSettingsElement;
155150
};
156151

157-
interface HTMLAppSigninElement extends Components.AppSignin, HTMLStencilElement {}
158-
var HTMLAppSigninElement: {
159-
prototype: HTMLAppSigninElement;
160-
new (): HTMLAppSigninElement;
161-
};
162-
163152
interface HTMLElementTagNameMap {
164153
'block-img': HTMLBlockImgElement
165154
'filter-popover': HTMLFilterPopoverElement
@@ -169,7 +158,6 @@ declare global {
169158
'app-photos': HTMLAppPhotosElement
170159
'app-root': HTMLAppRootElement
171160
'app-settings': HTMLAppSettingsElement
172-
'app-signin': HTMLAppSigninElement
173161
}
174162

175163
interface ElementTagNameMap {
@@ -181,7 +169,6 @@ declare global {
181169
'app-photos': HTMLAppPhotosElement;
182170
'app-root': HTMLAppRootElement;
183171
'app-settings': HTMLAppSettingsElement;
184-
'app-signin': HTMLAppSigninElement;
185172
}
186173

187174

src/services/storage-service.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export default class StorageService {
1111
let item = await CacheService.getItem(itemId);
1212
if (!item || forceUpdateCache) {
1313
const userSession = new blockstack.UserSession();
14-
item = await userSession.getFile(itemId);
14+
item = await userSession.getFile(itemId, {
15+
decrypt: false
16+
});
1517
if (updateCache || forceUpdateCache) {
1618
CacheService.setItem(itemId, item);
1719
}
@@ -26,7 +28,9 @@ export default class StorageService {
2628
cacheItem = true
2729
): Promise<void> {
2830
const userSession = new blockstack.UserSession();
29-
await userSession.putFile(itemId, itemValue);
31+
await userSession.putFile(itemId, itemValue, {
32+
encrypt: false
33+
});
3034
if (cacheItem) {
3135
await CacheService.setItem(itemId, itemValue);
3236
}

0 commit comments

Comments
 (0)