mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
address @link2xt comments
This commit is contained in:
@@ -840,19 +840,12 @@ fn save_locations(
|
||||
insert_msg_id: MsgId,
|
||||
hidden: i32,
|
||||
) {
|
||||
if chat_id <= DC_CHAT_ID_LAST_SPECIAL as libc::c_uint {
|
||||
if chat_id <= DC_CHAT_ID_LAST_SPECIAL {
|
||||
return ();
|
||||
}
|
||||
let mut location_id_written = false;
|
||||
let mut send_event = false;
|
||||
|
||||
info!(
|
||||
context,
|
||||
"saving locations chat_id={} insert_msg_id={}",
|
||||
chat_id,
|
||||
insert_msg_id.to_u32()
|
||||
);
|
||||
|
||||
if mime_parser.message_kml.is_some() {
|
||||
let locations = &mime_parser.message_kml.as_ref().unwrap().locations;
|
||||
let newest_location_id =
|
||||
|
||||
Reference in New Issue
Block a user