Skip to content

デスクトップ通知 (#569) を全ログインアカウントで受信する(現状アクティブ垢のみ) #675

Closed

Description

@pooza

概要

#569 のデスクトップ通知(WebSocket → OS ローカル通知)を、全ログインアカウントで受信できるようにする。現状はアクティブな1アカウントのみ。

現状(初期実装の制約)

DesktopNotificationDispatcher は currentAdapterProvider(= 現在選択中のアクティブアカウント)を watch し、その1アカウントの streamNotifications() だけを購読する。アカウント切替時はアクティブ垢の stream に張り替える。設計ドキュメント desktop-notification-design.md の「複数アカウント: アクティブアカウントのみ subscribe(初期実装)。将来は全アカウント並列も検討」のとおり。

→ 非アクティブなアカウント宛ての通知は #569 では出ない(APNs #468 経由では全登録アカウントに届くが、generic 文面 + #673 まで)。

動機

実用上、むしろ今見ていない(非アクティブな)アカウントにこそ通知がほしい。アクティブ垢はタイムラインを見ているので気づけるが、裏のアカウントの反応は通知でないと拾えない。

スコープ(案)

  • dispatcher を全ログインアカウントの adapter(NotificationStreamSupport を持つもの)に並列購読させる。
  • アカウントの増減(ログイン/ログアウト/切替)に追従して購読を張り直す。
  • 接続数: アカウント数ぶん WebSocket が常駐する(Mastodon user / Misskey main)。リソース影響を確認。
  • 通知にどのアカウント宛てかを示す(複数垢だと区別が要る。payload / title に account を含める)。
  • dedup(_emittedIds)はアカウント横断で id 衝突しないようキー設計を見直す(id に account を含める等)。

関連

マイルストーン

未割り当て(このマイルストーンには含めなくてよい、と pooza)。

Activity

  1. added
    enhancement
    desktop
    on Jun 6, 2026
  2. added a commit that references this issue on Jun 6, 2026
  3. added this to the v1.34 milestone on Jun 6, 2026
  4. pooza commented on Jun 6, 2026

    @pooza
    OwnerAuthor

    develop 031f02b で実装・出荷(v1.34)。DesktopNotificationDispatcher を全ログインアカウント並列購読に拡張(AccountKey で増減追従 / dedup キーを account|id 複合 / 複数垢時は title 末尾に @user@host / payload に account)。ユニットテスト8件(全垢購読・増減追従・横断dedup衝突回避・同一垢dedup・宛先表示・payload)追加。Linux 実機で受信確認済み。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    desktopenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions