Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
d095e607
Commit
d095e607
authored
Nov 25, 2013
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed detailed info
parent
d96450cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
interface.c
interface.c
+1
-1
mtproto-client.c
mtproto-client.c
+14
-4
mtproto-common.h
mtproto-common.h
+3
-1
No files found.
interface.c
View file @
d095e607
...
...
@@ -43,7 +43,7 @@
#include "mtproto-common.h"
#define ALLOW_MULT 1
//
#define ALLOW_MULT 1
char
*
default_prompt
=
"> "
;
int
unread_messages
;
...
...
mtproto-client.c
View file @
d095e607
...
...
@@ -1431,14 +1431,21 @@ void work_pong (struct connection *c UU, long long msg_id UU) {
fetch_long
();
// ping_id
}
void
work_detai
n
ed_info
(
struct
connection
*
c
UU
,
long
long
msg_id
UU
)
{
assert
(
fetch_int
()
==
CODE_msg_detai
n
ed_info
);
void
work_detai
l
ed_info
(
struct
connection
*
c
UU
,
long
long
msg_id
UU
)
{
assert
(
fetch_int
()
==
CODE_msg_detai
l
ed_info
);
fetch_long
();
// msg_id
fetch_long
();
// answer_msg_id
fetch_int
();
// bytes
fetch_int
();
// status
}
void
work_new_detailed_info
(
struct
connection
*
c
UU
,
long
long
msg_id
UU
)
{
assert
(
fetch_int
()
==
CODE_msg_detailed_info
);
fetch_long
();
// answer_msg_id
fetch_int
();
// bytes
fetch_int
();
// status
}
void
work_updates_to_long
(
struct
connection
*
c
UU
,
long
long
msg_id
UU
)
{
assert
(
fetch_int
()
==
(
int
)
CODE_updates_too_long
);
logprintf
(
"updates to long... Getting difference
\n
"
);
...
...
@@ -1484,8 +1491,11 @@ void rpc_execute_answer (struct connection *c, long long msg_id UU) {
case
CODE_pong
:
work_pong
(
c
,
msg_id
);
return
;
case
CODE_msg_detained_info
:
work_detained_info
(
c
,
msg_id
);
case
CODE_msg_detailed_info
:
work_detailed_info
(
c
,
msg_id
);
return
;
case
CODE_msg_new_detailed_info
:
work_new_detailed_info
(
c
,
msg_id
);
return
;
case
CODE_updates_too_long
:
work_updates_to_long
(
c
,
msg_id
);
...
...
mtproto-common.h
View file @
d095e607
...
...
@@ -78,7 +78,9 @@
#define CODE_peer_notify_settings_old 0xddbcd4a5
#define CODE_user_profile_photo_old 0x990d1493
#define CODE_msg_detained_info 0x276d3ec6
#define CODE_msg_new_detailed_info 0x809db6df
#define CODE_msg_detailed_info 0x276d3ec6
/* not really a limit, for struct encrypted_message only */
// #define MAX_MESSAGE_INTS 16384
#define MAX_MESSAGE_INTS 1048576
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment