mirror of
https://github.com/majn/telegram-purple
synced 2025-08-22 09:57:44 +00:00
Fix code style
This commit is contained in:
parent
6940278a51
commit
e926b216b6
@ -784,7 +784,7 @@ void tgp_msg_recv (struct tgl_state *TLS, struct tgl_message *M, GList *before)
|
||||
/*
|
||||
For non-channels telegram ensures that tgp receives the messages in the correct order, but in channels
|
||||
there may be holes that need to be filled before the message log can be printed. This means that the
|
||||
queue may not be processed till all historic messages have been fetched and the messages have been
|
||||
queue may not be processed until all historic messages have been fetched and the messages have been
|
||||
inserted into the correct position of the queue
|
||||
*/
|
||||
if (tgl_get_peer_type (C->msg->from_id) == TGL_PEER_CHANNEL
|
||||
@ -848,6 +848,7 @@ void tgp_msg_recv (struct tgl_state *TLS, struct tgl_message *M, GList *before)
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
#ifndef __ADIUM_
|
||||
case tgl_message_media_video:
|
||||
if (M->media.document->size <= tls_get_media_threshold (TLS)) {
|
||||
@ -862,6 +863,7 @@ void tgp_msg_recv (struct tgl_state *TLS, struct tgl_message *M, GList *before)
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
case tgl_message_media_document_encr:
|
||||
if (M->media.encr_document->flags & TGLDF_STICKER || M->media.encr_document->flags & TGLDF_IMAGE) {
|
||||
++ C->pending;
|
||||
@ -873,7 +875,8 @@ void tgp_msg_recv (struct tgl_state *TLS, struct tgl_message *M, GList *before)
|
||||
// TODO: load geo thumbnail
|
||||
break;
|
||||
|
||||
default: // prevent Clang warnings ...
|
||||
default:
|
||||
// prevent Clang warnings ...
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@
|
||||
void tgp_msg_recv (struct tgl_state *TLS, struct tgl_message *M, GList *before);
|
||||
|
||||
/**
|
||||
* Process a message and send it the peer
|
||||
* Process a message and send it to the peer
|
||||
*
|
||||
* Removes all HTML escape chars and HTML markup, finds embedded images and sends
|
||||
* them as pictures and splits up messages that are too big for single Telegram
|
||||
|
Loading…
x
Reference in New Issue
Block a user