mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 10:26:29 +03:00
Store dc_kml_t::locations as Option<dc_array_t> instead of pointer
This commit is contained in:
@@ -771,7 +771,7 @@ pub unsafe fn dc_receive_imf(
|
||||
context,
|
||||
chat_id,
|
||||
from_id,
|
||||
mime_parser.message_kml.unwrap().locations,
|
||||
&mime_parser.message_kml.unwrap().locations,
|
||||
1,
|
||||
);
|
||||
if 0 != newest_location_id && 0 == hidden {
|
||||
@@ -797,7 +797,7 @@ pub unsafe fn dc_receive_imf(
|
||||
context,
|
||||
chat_id,
|
||||
from_id,
|
||||
mime_parser.location_kml.as_ref().unwrap().locations,
|
||||
&mime_parser.location_kml.as_ref().unwrap().locations,
|
||||
0,
|
||||
);
|
||||
if newest_location_id != 0 && hidden == 0 && !location_id_written {
|
||||
|
||||
Reference in New Issue
Block a user