forked from Blendman974/faceclaw
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.
20 lines
792 B
TypeScript
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();
|
|
}
|