A couple various fixes (#242)
* Fix: set the status bar color for dark mode when logging in * Add some logging * Improve read/unread tracking behaviors in notifications
This commit is contained in:
parent
1fd2942b9b
commit
9b46b2e6a9
4 changed files with 15 additions and 3 deletions
|
|
@ -46,10 +46,14 @@ export class RootStoreModel {
|
|||
hackUpgradeNeeded = false
|
||||
async hackCheckIfUpgradeNeeded() {
|
||||
try {
|
||||
this.log.debug('hackCheckIfUpgradeNeeded()')
|
||||
const res = await fetch('https://bsky.social/xrpc/app.bsky.feed.getLikes')
|
||||
await res.text()
|
||||
runInAction(() => {
|
||||
this.hackUpgradeNeeded = res.status !== 501
|
||||
this.log.debug(
|
||||
`hackCheckIfUpgradeNeeded() said ${this.hackUpgradeNeeded}`,
|
||||
)
|
||||
})
|
||||
} catch (e) {
|
||||
this.log.error('Failed to hackCheckIfUpgradeNeeded', {e})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue