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
4fe883b9
Commit
4fe883b9
authored
Aug 26, 2014
by
vvaltman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed seq
parent
dc38df06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
queries.c
queries.c
+10
-2
No files found.
queries.c
View file @
4fe883b9
...
...
@@ -1021,9 +1021,17 @@ void tgl_do_send_text (tgl_peer_id_t id, char *file_name, void (*callback)(void
static
int
mark_read_on_receive
(
struct
query
*
q
UU
)
{
assert
(
fetch_int
()
==
(
int
)
CODE_messages_affected_history
);
//tglu_fetch_pts ();
fetch_int
();
int
pts
=
fetch_int
();
//tglu_fetch_seq ();
fetch_int
();
// seq
int
seq
=
fetch_int
();
// seq
if
(
seq
==
tgl_state
.
seq
+
1
)
{
bl_do_set_pts
(
pts
);
bl_do_set_seq
(
seq
);
}
else
{
tgl_do_get_difference
(
0
,
0
,
0
);
}
fetch_int
();
// offset
if
(
q
->
callback
)
{
((
void
(
*
)(
void
*
,
int
))
q
->
callback
)(
q
->
callback_extra
,
1
);
...
...
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