Skip to content

refactor(chat): legacy create_messaging_message を撤去#12

Merged
hitalin merged 1 commit into
mainfrom
refactor/remove-legacy-messaging-create
May 9, 2026
Merged

refactor(chat): legacy create_messaging_message を撤去#12
hitalin merged 1 commit into
mainfrom
refactor/remove-legacy-messaging-create

Conversation

@hitalin
Copy link
Copy Markdown
Owner

@hitalin hitalin commented May 9, 2026

Summary

Misskey v2025 で messaging/messages/create 含む messaging/* 系エンドポイントが完全削除されたため、create_messaging_message 関数は呼ぶと必ず 404 になる dead code。chat/messages/create-to-{user,room} (notecli#11 で text/fileId optional 化済み) で完全代替される。

notedeck 側の api_create_messaging_message Tauri command も次の notedeck PR で撤去予定。

残タスク (本 PR の対象外)

commands/auth.rs:64-65 の OAuth scope read:messaging / write:messaging は別件として残す。Misskey v2025 でこれらの scope が no-op か invalid かは未調査。要する状況なら別 PR で read:chat / write:chat 系に置換 (注: 公式 endpoints/chat 系のスコープが何かを確認する必要あり)。

Test plan

  • cargo build --features specta 通過
  • cargo test --features specta 通過

Misskey v2025 で `messaging/messages/create` が完全削除されたため
呼び出すと 404 になり、本関数自体が dead code。`chat/messages/create-to-{user,room}`
(notecli#11 で text/fileId optional 化済み) で完全代替される。

notedeck#480 で frontend を新 API 経由に切り替え済み。それと同時に
notedeck 側の `api_create_messaging_message` (Tauri command) も撤去予定。

OAuth scope の `read:messaging` / `write:messaging` (commands/auth.rs) は
別件として残す (Misskey v2025 で no-op か invalid かサーバ実装依存のため要調査)。
@hitalin hitalin merged commit 5f80dbe into main May 9, 2026
1 check failed
hitalin added a commit to hitalin/notedeck that referenced this pull request May 9, 2026
[notecli#12](hitalin/notecli#12) で
`create_messaging_message` 関数も削除された。本 PR の前のコミットで
notedeck 側 `api_create_messaging_message` Tauri command も撤去済みなので、
notecli 上に残っていた dead 関数を削除する変更が無害に取り込める。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant