Files
faceclaw/app/phone-ui/conversations-page.ts
Kalani Helekunihi fe85846e6f Add calculator and microphone conversation apps
Add symbolic math and graphing tools, dual-microphone audio processing, live captions, translation, speaker diarization, sentiment analysis, and searchable conversation history.

Extend Android voice and BLE support for microphone control, recording, transcoding, and on-device speaker identification, with coverage for calculator and microphone workflows.
2026-08-25 00:22:19 -05:00

20 lines
792 B
TypeScript

import { NavigatedData, Page } from "@nativescript/core";
import { ConversationsViewModel } from "./conversations-view-model";
type ConversationsContext = { speakerId?: number } | undefined;
export function navigatingTo(args: NavigatedData): void {
const page = args.object as Page;
// Preserve the model across back-navigation (returning from a conversation
// or the speakers page) so the search and filters aren't lost; reload every
// time so deletions, merges, and renames made elsewhere show up.
let model = page.bindingContext as ConversationsViewModel | undefined;
if (!model) {
const context = args.context as ConversationsContext;
model = new ConversationsViewModel({ speakerId: context?.speakerId });
page.bindingContext = model;
}
model.reload();
}