portable-service: better prompt message

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-11-15 16:49:55 +08:00
parent abd665153b
commit ca8cb5a3b0
38 changed files with 131 additions and 124 deletions

View File

@@ -228,8 +228,7 @@ impl InvokeUiSession for FlutterHandler {
id: i32,
entries: &Vec<FileEntry>,
path: String,
#[allow(unused_variables)]
is_local: bool,
#[allow(unused_variables)] is_local: bool,
only_count: bool,
) {
// TODO opt
@@ -327,6 +326,10 @@ impl InvokeUiSession for FlutterHandler {
);
}
fn cancel_msgbox(&self, tag: &str) {
self.push_event("cancel_msgbox", vec![("tag", tag)]);
}
fn new_message(&self, msg: String) {
self.push_event("chat_client_mode", vec![("text", &msg)]);
}