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
839e9cd4
Commit
839e9cd4
authored
Aug 21, 2014
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
parent
6707c119
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
loop.c
loop.c
+1
-0
queries.c
queries.c
+6
-0
No files found.
loop.c
View file @
839e9cd4
...
...
@@ -372,6 +372,7 @@ int loop (void) {
tgl_do_get_difference
(
sync_from_start
,
get_difference_callback
,
0
);
net_loop
(
0
,
dgot
);
assert
(
!
(
tgl_state
.
locks
&
TGL_LOCK_DIFF
));
#ifdef USE_LUA
lua_diff_end
();
#endif
...
...
queries.c
View file @
839e9cd4
...
...
@@ -799,6 +799,7 @@ static int msg_send_on_answer (struct query *q UU) {
bl_do_set_pts
(
pts
);
bl_do_msg_seq_update
(
id
);
}
else
{
vlogprintf
(
E_NOTICE
,
"Hole in seq
\n
"
);
tgl_do_get_difference
(
0
,
0
,
0
);
}
if
(
x
==
CODE_messages_sent_message_link
)
{
...
...
@@ -1337,6 +1338,7 @@ static int send_file_on_answer (struct query *q UU) {
bl_do_set_pts
(
pts
);
bl_do_msg_seq_update
(
M
->
id
);
}
else
{
vlogprintf
(
E_NOTICE
,
"Hole in seq
\n
"
);
tgl_do_get_difference
(
0
,
0
,
0
);
}
...
...
@@ -1684,6 +1686,7 @@ static int fwd_msg_on_answer (struct query *q UU) {
bl_do_set_pts
(
pts
);
bl_do_msg_seq_update
(
M
->
id
);
}
else
{
vlogprintf
(
E_NOTICE
,
"Hole in seq
\n
"
);
tgl_do_get_difference
(
0
,
0
,
0
);
}
//print_message (M);
...
...
@@ -1736,6 +1739,7 @@ static int rename_chat_on_answer (struct query *q UU) {
bl_do_set_pts
(
pts
);
bl_do_msg_seq_update
(
M
->
id
);
}
else
{
vlogprintf
(
E_NOTICE
,
"Hole in seq
\n
"
);
tgl_do_get_difference
(
0
,
0
,
0
);
}
//print_message (M);
...
...
@@ -2707,6 +2711,8 @@ void tgl_do_create_encr_chat_request (int user_id, void (*callback)(void *callba
//int difference_got;
//int seq, pts, qts, last_date;
static
int
get_state_on_answer
(
struct
query
*
q
UU
)
{
assert
(
tgl_state
.
locks
&
TGL_LOCK_DIFF
);
tgl_state
.
locks
^=
TGL_LOCK_DIFF
;
assert
(
fetch_int
()
==
(
int
)
CODE_updates_state
);
bl_do_set_pts
(
fetch_int
());
bl_do_set_qts
(
fetch_int
());
...
...
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