mirror of
https://github.com/majn/telegram-purple
synced 2025-08-29 04: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
|
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
|
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
|
inserted into the correct position of the queue
|
||||||
*/
|
*/
|
||||||
if (tgl_get_peer_type (C->msg->from_id) == TGL_PEER_CHANNEL
|
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
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifndef __ADIUM_
|
#ifndef __ADIUM_
|
||||||
case tgl_message_media_video:
|
case tgl_message_media_video:
|
||||||
if (M->media.document->size <= tls_get_media_threshold (TLS)) {
|
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;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case tgl_message_media_document_encr:
|
case tgl_message_media_document_encr:
|
||||||
if (M->media.encr_document->flags & TGLDF_STICKER || M->media.encr_document->flags & TGLDF_IMAGE) {
|
if (M->media.encr_document->flags & TGLDF_STICKER || M->media.encr_document->flags & TGLDF_IMAGE) {
|
||||||
++ C->pending;
|
++ C->pending;
|
||||||
@ -873,7 +875,8 @@ void tgp_msg_recv (struct tgl_state *TLS, struct tgl_message *M, GList *before)
|
|||||||
// TODO: load geo thumbnail
|
// TODO: load geo thumbnail
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: // prevent Clang warnings ...
|
default:
|
||||||
|
// prevent Clang warnings ...
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
void tgp_msg_recv (struct tgl_state *TLS, struct tgl_message *M, GList *before);
|
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
|
* 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
|
* them as pictures and splits up messages that are too big for single Telegram
|
||||||
|
Loading…
x
Reference in New Issue
Block a user