Replace numbers with named constants

This commit is contained in:
Dmitry Bogatov
2019-09-17 15:24:53 +00:00
parent 5001a0e37d
commit 391a6bf422
2 changed files with 8 additions and 9 deletions

View File

@@ -246,15 +246,14 @@ impl Job {
msg.server_uid,
&dest_folder,
&mut dest_uid,
) as libc::c_uint
{
1 => {
) {
DC_RETRY_LATER => {
self.try_again_later(3i32, None);
}
3 => {
DC_SUCCESS => {
dc_update_server_uid(context, &msg.rfc724_mid, &dest_folder, dest_uid);
}
0 | 2 | _ => {}
DC_FAILED | DC_ALREADY_DONE | _ => {}
}
}
}