mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 13:26:28 +03:00
cargo fmt
This commit is contained in:
committed by
holger krekel
parent
c713474d1f
commit
a29f06a730
@@ -2160,7 +2160,6 @@ pub unsafe fn dc_chat_is_verified(chat: *const Chat) -> libc::c_int {
|
|||||||
// TODO should return bool /rtn
|
// TODO should return bool /rtn
|
||||||
pub unsafe fn dc_chat_is_sending_locations(chat: *const Chat) -> libc::c_int {
|
pub unsafe fn dc_chat_is_sending_locations(chat: *const Chat) -> libc::c_int {
|
||||||
if chat.is_null() {
|
if chat.is_null() {
|
||||||
|
|
||||||
return 0i32;
|
return 0i32;
|
||||||
}
|
}
|
||||||
(*chat).is_sending_locations
|
(*chat).is_sending_locations
|
||||||
|
|||||||
@@ -407,9 +407,7 @@ pub unsafe fn dc_msg_set_location(
|
|||||||
latitude: libc::c_double,
|
latitude: libc::c_double,
|
||||||
longitude: libc::c_double,
|
longitude: libc::c_double,
|
||||||
) {
|
) {
|
||||||
if msg.is_null()
|
if msg.is_null() || (latitude == 0.0 && longitude == 0.0) {
|
||||||
|| (latitude == 0.0 && longitude == 0.0)
|
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1002,9 +1000,7 @@ pub unsafe fn dc_msg_is_increation(msg: *const dc_msg_t) -> libc::c_int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub unsafe fn dc_msg_is_setupmessage(msg: *const dc_msg_t) -> bool {
|
pub unsafe fn dc_msg_is_setupmessage(msg: *const dc_msg_t) -> bool {
|
||||||
if msg.is_null()
|
if msg.is_null() || (*msg).type_0 != Viewtype::File {
|
||||||
|| (*msg).type_0 != Viewtype::File
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user