mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
remove usued repl command 'event' (#3153)
no need to re-implement that unless there is actually some need.
This commit is contained in:
@@ -426,7 +426,6 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
|
|||||||
joinqr <qr-content>\n\
|
joinqr <qr-content>\n\
|
||||||
setqr <qr-content>\n\
|
setqr <qr-content>\n\
|
||||||
providerinfo <addr>\n\
|
providerinfo <addr>\n\
|
||||||
event <event-id to test>\n\
|
|
||||||
fileinfo <file>\n\
|
fileinfo <file>\n\
|
||||||
estimatedeletion <seconds>\n\
|
estimatedeletion <seconds>\n\
|
||||||
clear -- clear screen\n\
|
clear -- clear screen\n\
|
||||||
@@ -1220,17 +1219,6 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: implement this again, unclear how to match this through though, without writing a parser.
|
|
||||||
// "event" => {
|
|
||||||
// ensure!(!arg1.is_empty(), "Argument <id> missing.");
|
|
||||||
// let event = arg1.parse()?;
|
|
||||||
// let event = EventType::from_u32(event).ok_or(format_err!("EventType::from_u32({})", event))?;
|
|
||||||
// let r = context.emit_event(event, 0 as libc::uintptr_t, 0 as libc::uintptr_t);
|
|
||||||
// println!(
|
|
||||||
// "Sending event {:?}({}), received value {}.",
|
|
||||||
// event, event as usize, r,
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
"fileinfo" => {
|
"fileinfo" => {
|
||||||
ensure!(!arg1.is_empty(), "Argument <file> missing.");
|
ensure!(!arg1.is_empty(), "Argument <file> missing.");
|
||||||
|
|
||||||
|
|||||||
@@ -227,13 +227,12 @@ const CONTACT_COMMANDS: [&str; 9] = [
|
|||||||
"unblock",
|
"unblock",
|
||||||
"listblocked",
|
"listblocked",
|
||||||
];
|
];
|
||||||
const MISC_COMMANDS: [&str; 12] = [
|
const MISC_COMMANDS: [&str; 11] = [
|
||||||
"getqr",
|
"getqr",
|
||||||
"getqrsvg",
|
"getqrsvg",
|
||||||
"getbadqr",
|
"getbadqr",
|
||||||
"checkqr",
|
"checkqr",
|
||||||
"joinqr",
|
"joinqr",
|
||||||
"event",
|
|
||||||
"fileinfo",
|
"fileinfo",
|
||||||
"clear",
|
"clear",
|
||||||
"exit",
|
"exit",
|
||||||
|
|||||||
Reference in New Issue
Block a user