1
0
Fork 0
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:
B. Petersen 2019-03-11 12:12:30 +01:00
parent e4d2cf99e9
commit ad878a8c33
No known key found for this signature in database
GPG key ID: 3B88E92DEA8E9AFC
3 changed files with 42 additions and 0 deletions

View file

@ -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) {