Skip to content

Commit d63580f

Browse files
committed
fixes bug with getDefaultIdentity
closes #130 related to #127 related to #13
1 parent 57caf34 commit d63580f

File tree

18 files changed

+2048
-15
lines changed

18 files changed

+2048
-15
lines changed

dist/bundle.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98670,11 +98670,12 @@ const start = async () => {
9867098670
location = "/docs/index.html#/troubleshooting/no-connection"
9867198671
break
9867298672
default:
98673+
console.error("Exception not caught", n)
9867398674
throw n
9867498675
}
9867598676
} else {
9867698677
console.error("error on core start", n)
98677-
throw n
98678+
//throw n
9867898679
}
9867998680
}
9868098681
}
@@ -98975,9 +98976,13 @@ const setDefaultIdentity = (feedId) => {
9897598976
const getDefaultIdentity = () => {
9897698977
if (savedData?.defaultIdentity) {
9897798978
return configurationForIdentity(savedData.defaultIdentity)
98978-
} else {
98979-
savedData?.identities[Object.keys(savedData?.identities)[0]]
9898098979
}
98980+
98981+
if (savedData.hasOwnProperty("identities")) {
98982+
return savedData?.identities[Object.keys(savedData?.identities)[0]]
98983+
}
98984+
98985+
throw "Configuration is missing"
9898198986
}
9898298987

9898398988
module.exports = {

dist/docs/_sidebar.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
- [Packages](packages/)
1111
- [Privacy Policy](privacy-policy.md)
1212
- Release Notes
13-
- [Version 2022.1.1](release_notes/2021.12.1.md)
13+
- [Version 2022.2.1](release_notes/2022.2.1.md)
14+
- [Version 2022.1.2](release_notes/2022.1.2.md)
15+
- [Version 2022.1.1](release_notes/2022.1.1.md)
1416
- [Version 2021.10.2](release_notes/2021.10.2.md)
1517
- [Version 2021.10.1](release_notes/2021.10.1.md)
1618
- [Version 2021.6.2](release_notes/2021.6.2.md)

dist/docs/packages/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ These are the packages that Patchfox is loading.
55

66
* [blog](/packages/blog/)
77
* [books](/packages/books/)
8+
* [errorHandler](/packages/errorHandler/)
89
* [githubIntegration](/packages/githubIntegration/)
9-
* [globalMenu](/packages/globalMenu/)
1010
* [contacts](/packages/contacts/)
11-
* [calendar](/packages/calendar/)
12-
* [errorHandler](/packages/errorHandler/)
11+
* [globalMenu](/packages/globalMenu/)
1312
* [helpMenu](/packages/helpMenu/)
13+
* [calendar](/packages/calendar/)
1414
* [hub](/packages/hub/)
1515
* [intercept](/packages/intercept/)
1616
* [launcher](/packages/launcher/)
@@ -20,7 +20,7 @@ These are the packages that Patchfox is loading.
2020
* [pub](/packages/pub/)
2121
* [search](/packages/search/)
2222
* [settings](/packages/settings/)
23+
* [sourcehutIntegration](/packages/sourcehutIntegration/)
2324
* [system](/packages/system/)
2425
* [vote](/packages/vote/)
25-
* [sourcehutIntegration](/packages/sourcehutIntegration/)
2626
* [zine](/packages/zine/)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Release 2022.1.2
2+
3+
* Fixed typo in blob handling in the blog compose view.
4+
* Fixed the toast message when you successfuly post a blog.
5+
6+
# Release 2022.1.1
7+
8+
## Rework
9+
10+
A huge part of this release is the invisible work of [refactoring the high-level SSB library](https://github.com/soapdog/patchfox/issues/105) used in Patchfox into multiple high-level SSB libraries to better [support multiple SSB server implementations](https://github.com/soapdog/patchfox/issues/109). This has been a ton of work, and it is all under the surface.
11+
12+
A visible feature that is enabled by this work is supporting multiple identities, a video showing this feature [is available on YouTube](https://www.youtube.com/watch?v=aNIXQH1fX_A).
13+
14+
## Fixes & Improvements
15+
16+
* New preferences to set font size for both viewing content and composing new messages.
17+
* Adding thumbnails to blog messages in the blog compose window works again.
18+
* Fixes wrong message in `errorHandler` package when the error originates outside a package.
19+
* Fixed bug in the _popular query_ used to compute the _hub → popular_ view. It was barfing errors if a message was missing.
20+
* Fixed a wrong menu entry in the `settings` package.
21+
* Fixed problem with thumbnail attachment in `blog` composition.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Release 2022.2.1
2+
3+
* Fixed a bug that caused the `settings` package to be inaccessible for new users.
4+
5+
# Release 2022.1.2
6+
7+
* Fixed typo in blob handling in the blog compose view.
8+
* Fixed the toast message when you successfuly post a blog.
9+
10+
# Release 2022.1.1
11+
12+
## Rework
13+
14+
A huge part of this release is the invisible work of [refactoring the high-level SSB library](https://github.com/soapdog/patchfox/issues/105) used in Patchfox into multiple high-level SSB libraries to better [support multiple SSB server implementations](https://github.com/soapdog/patchfox/issues/109). This has been a ton of work, and it is all under the surface.
15+
16+
A visible feature that is enabled by this work is supporting multiple identities, a video showing this feature [is available on YouTube](https://www.youtube.com/watch?v=aNIXQH1fX_A).
17+
18+
## Fixes & Improvements
19+
20+
* New preferences to set font size for both viewing content and composing new messages.
21+
* Adding thumbnails to blog messages in the blog compose window works again.
22+
* Fixes wrong message in `errorHandler` package when the error originates outside a package.
23+
* Fixed bug in the _popular query_ used to compute the _hub → popular_ view. It was barfing errors if a message was missing.
24+
* Fixed a wrong menu entry in the `settings` package.
25+
* Fixed problem with thumbnail attachment in `blog` composition.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Release 2022.2.1
2+
3+
* Fixed a bug that caused the `settings` package to be inaccessible for new users.
4+
5+
# Release 2022.1.2
6+
7+
* Fixed typo in blob handling in the blog compose view.
8+
* Fixed the toast message when you successfuly post a blog.
9+
10+
# Release 2022.1.1
11+
12+
## Rework
13+
14+
A huge part of this release is the invisible work of [refactoring the high-level SSB library](https://github.com/soapdog/patchfox/issues/105) used in Patchfox into multiple high-level SSB libraries to better [support multiple SSB server implementations](https://github.com/soapdog/patchfox/issues/109). This has been a ton of work, and it is all under the surface.
15+
16+
A visible feature that is enabled by this work is supporting multiple identities, a video showing this feature [is available on YouTube](https://www.youtube.com/watch?v=aNIXQH1fX_A).
17+
18+
## Fixes & Improvements
19+
20+
* New preferences to set font size for both viewing content and composing new messages.
21+
* Adding thumbnails to blog messages in the blog compose window works again.
22+
* Fixes wrong message in `errorHandler` package when the error originates outside a package.
23+
* Fixed bug in the _popular query_ used to compute the _hub → popular_ view. It was barfing errors if a message was missing.
24+
* Fixed a wrong menu entry in the `settings` package.
25+
* Fixed problem with thumbnail attachment in `blog` composition.

dist/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"description": "Patchfox is a Secure Scuttlebutt client",
33
"manifest_version": 2,
44
"name": "Patchfox",
5-
"version": "2022.1.2",
5+
"version": "2022.2.1",
66
"icons": {
77
"512": "images/patchfox_pixel_512.png",
88
"96": "images/patchfox_pixel_96.png",

docs/_sidebar.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
- [Packages](packages/)
1111
- [Privacy Policy](privacy-policy.md)
1212
- Release Notes
13-
- [Version 2022.1.1](release_notes/2021.12.1.md)
13+
- [Version 2022.2.1](release_notes/2022.2.1.md)
14+
- [Version 2022.1.2](release_notes/2022.1.2.md)
15+
- [Version 2022.1.1](release_notes/2022.1.1.md)
1416
- [Version 2021.10.2](release_notes/2021.10.2.md)
1517
- [Version 2021.10.1](release_notes/2021.10.1.md)
1618
- [Version 2021.6.2](release_notes/2021.6.2.md)

docs/release_notes/2022.1.2.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Release 2022.1.2
2+
3+
* Fixed typo in blob handling in the blog compose view.
4+
* Fixed the toast message when you successfuly post a blog.
5+
6+
# Release 2022.1.1
7+
8+
## Rework
9+
10+
A huge part of this release is the invisible work of [refactoring the high-level SSB library](https://github.com/soapdog/patchfox/issues/105) used in Patchfox into multiple high-level SSB libraries to better [support multiple SSB server implementations](https://github.com/soapdog/patchfox/issues/109). This has been a ton of work, and it is all under the surface.
11+
12+
A visible feature that is enabled by this work is supporting multiple identities, a video showing this feature [is available on YouTube](https://www.youtube.com/watch?v=aNIXQH1fX_A).
13+
14+
## Fixes & Improvements
15+
16+
* New preferences to set font size for both viewing content and composing new messages.
17+
* Adding thumbnails to blog messages in the blog compose window works again.
18+
* Fixes wrong message in `errorHandler` package when the error originates outside a package.
19+
* Fixed bug in the _popular query_ used to compute the _hub → popular_ view. It was barfing errors if a message was missing.
20+
* Fixed a wrong menu entry in the `settings` package.
21+
* Fixed problem with thumbnail attachment in `blog` composition.

docs/release_notes/2022.2.1.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Release 2022.2.1
2+
3+
* Fixed a bug that caused the `settings` package to be inaccessible for new users.
4+
5+
# Release 2022.1.2
6+
7+
* Fixed typo in blob handling in the blog compose view.
8+
* Fixed the toast message when you successfuly post a blog.
9+
10+
# Release 2022.1.1
11+
12+
## Rework
13+
14+
A huge part of this release is the invisible work of [refactoring the high-level SSB library](https://github.com/soapdog/patchfox/issues/105) used in Patchfox into multiple high-level SSB libraries to better [support multiple SSB server implementations](https://github.com/soapdog/patchfox/issues/109). This has been a ton of work, and it is all under the surface.
15+
16+
A visible feature that is enabled by this work is supporting multiple identities, a video showing this feature [is available on YouTube](https://www.youtube.com/watch?v=aNIXQH1fX_A).
17+
18+
## Fixes & Improvements
19+
20+
* New preferences to set font size for both viewing content and composing new messages.
21+
* Adding thumbnails to blog messages in the blog compose window works again.
22+
* Fixes wrong message in `errorHandler` package when the error originates outside a package.
23+
* Fixed bug in the _popular query_ used to compute the _hub → popular_ view. It was barfing errors if a message was missing.
24+
* Fixed a wrong menu entry in the `settings` package.
25+
* Fixed problem with thumbnail attachment in `blog` composition.

0 commit comments

Comments
 (0)