mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-05 19:42:04 +02:00
add a function to delete all locations
This commit is contained in:
parent
e4d2cf99e9
commit
ad878a8c33
3 changed files with 42 additions and 0 deletions
|
@ -458,6 +458,7 @@ char* dc_cmdline(dc_context_t* context, const char* cmdline)
|
|||
"chatinfo\n"
|
||||
"sendlocations <seconds>\n"
|
||||
"setlocation <lat> <lng>\n"
|
||||
"dellocations\n"
|
||||
"getlocations\n"
|
||||
"send <text>\n"
|
||||
"sendimage <file> [<text>]\n"
|
||||
|
@ -954,6 +955,10 @@ char* dc_cmdline(dc_context_t* context, const char* cmdline)
|
|||
ret = dc_strdup("ERROR: Latitude or longitude not given.");
|
||||
}
|
||||
}
|
||||
else if (strcmp(cmd, "dellocations")==0) {
|
||||
dc_delete_all_locations(context);
|
||||
ret = COMMAND_SUCCEEDED;
|
||||
}
|
||||
else if (strcmp(cmd, "send")==0)
|
||||
{
|
||||
if (sel_chat) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue