Small tweaks

This commit is contained in:
Jon Staab
2026-04-01 14:07:29 -07:00
parent 6feeb23b1f
commit 25a69a8191
4 changed files with 11 additions and 7 deletions
+7
View File
@@ -1,5 +1,12 @@
# Changelog # Changelog
# 1.7.2
* Fix race condition in nip 46
* Remove duplicate spaces button
* Combine discover and space list pages
* Fix some chat related bugs
# 1.7.1 # 1.7.1
* Fix pomade registration fallback in case of offline signer * Fix pomade registration fallback in case of offline signer
+1 -1
View File
@@ -302,7 +302,7 @@
</div> </div>
</SecondaryNavSection> </SecondaryNavSection>
<div <div
class="flex flex-shrink-0 flex-col gap-2 p-2 pt-0 -mt-4 pb-[calc(var(--saib)+3rem)] md:pb-2 z-nav"> class="flex flex-shrink-0 flex-col gap-2 p-2 pt-0 -mt-4 pb-[calc(var(--saib)+0.25rem)] md:pb-2 z-nav">
<VoiceWidget /> <VoiceWidget />
<Button class="btn btn-neutral btn-sm h-10" onclick={showDetail}> <Button class="btn btn-neutral btn-sm h-10" onclick={showDetail}>
<SocketStatusIndicator {url} /> <SocketStatusIndicator {url} />
+1 -4
View File
@@ -412,12 +412,9 @@ export const toggleRoomNotifications = async (url: string, h: string) => {
let updated: typeof alerts let updated: typeof alerts
if (!existing) { if (!existing) {
// No space settings yet, create one with this room as an exception (default is notify: true)
updated = [...alerts, {url, notify: true, exceptions: [h]}] updated = [...alerts, {url, notify: true, exceptions: [h]}]
} else { } else {
// Toggle exception status const exceptions = existing.exceptions.includes(h)
const hasException = existing.exceptions.includes(h)
const exceptions = hasException
? remove(h, existing.exceptions) ? remove(h, existing.exceptions)
: append(h, existing.exceptions) : append(h, existing.exceptions)
+2 -2
View File
@@ -1,7 +1,7 @@
import {throttle} from "throttle-debounce" import {throttle} from "throttle-debounce"
import {App} from "@capacitor/app" import {App} from "@capacitor/app"
import {registerPlugin} from "@capacitor/core" import {registerPlugin} from "@capacitor/core"
import {pubkey, getSession} from "@welshman/app" import {session} from "@welshman/app"
import type {Session} from "@welshman/app" import type {Session} from "@welshman/app"
import {maybe, now} from "@welshman/lib" import {maybe, now} from "@welshman/lib"
import type {Filter} from "@welshman/util" import type {Filter} from "@welshman/util"
@@ -44,7 +44,7 @@ export class AndroidFallbackNotifications implements IPushAdapter {
const doSync = throttle(1000, () => { const doSync = throttle(1000, () => {
AndroidPushFallback.syncState({ AndroidPushFallback.syncState({
state: { state: {
session: pubkey.get() ? getSession(pubkey.get()!) : undefined, session: session.get(),
activeSince: this._activeSince, activeSince: this._activeSince,
subscriptions: Array.from(this._subscriptions.values()), subscriptions: Array.from(this._subscriptions.values()),
}, },