ComposeSubmitCallback typedef

ComposeSubmitCallback = Future<ChatSendResult> Function(List<ComposeResult>)

Compose-side submit callback. The caller (chat_page) provides this so compose can pre-insert the chat bubble(s) before it pops — mirrors telegram's completion(results, finishedCallback) pattern from MediaEditorScreen.swift:7664. Returns the per-result cids + bubble-source finders so compose can target the close hero at the just-mounted bubbles without consulting any global registry.

Implementation

typedef ComposeSubmitCallback = Future<ChatSendResult> Function(
  List<ComposeResult>,
);