forked from Blendman974/faceclaw
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.
This commit is contained in:
124 files changed
+22061
-58
No files matched your search
@@ -0,0 +1,19 @@
|
||||
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();
|
||||
}
|
||||
Reference in new issue
Block a user