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
43397269
Commit
43397269
authored
Aug 25, 2014
by
vvaltman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug with short updates
parent
c721eca5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
structures.c
structures.c
+14
-6
updates.c
updates.c
+2
-0
No files found.
structures.c
View file @
43397269
...
...
@@ -647,11 +647,13 @@ void tglf_fetch_message_short (struct tgl_message *M) {
int
date
=
fetch_int
();
//tglu_fetch_seq ();
fetch_int
();
int
seq
=
fetch_int
();
assert
(
seq
==
tgl_state
.
seq
+
1
);
bl_do_create_message_text
(
id
,
from_id
,
TGL_PEER_USER
,
to_id
,
date
,
1
,
l
,
s
);
bl_do_msg_seq_update
(
id
);
}
else
{
fetch_int
();
// id
int
id
=
fetch_int
();
// id
fetch_int
();
// from_id
int
l
=
prefetch_strlen
();
fetch_str
(
l
);
// text
...
...
@@ -659,7 +661,9 @@ void tglf_fetch_message_short (struct tgl_message *M) {
tglu_fetch_pts
();
fetch_int
();
//tglu_fetch_seq ();
fetch_int
();
int
seq
=
fetch_int
();
assert
(
seq
==
tgl_state
.
seq
+
1
);
bl_do_msg_seq_update
(
id
);
}
}
...
...
@@ -678,10 +682,12 @@ void tglf_fetch_message_short_chat (struct tgl_message *M) {
int
date
=
fetch_int
();
//tglu_fetch_seq ();
fetch_int
();
int
seq
=
fetch_int
();
assert
(
seq
==
tgl_state
.
seq
+
1
);
bl_do_create_message_text
(
id
,
from_id
,
TGL_PEER_CHAT
,
to_id
,
date
,
1
,
l
,
s
);
bl_do_msg_seq_update
(
id
);
}
else
{
fetch_int
();
// id
int
id
=
fetch_int
();
// id
fetch_int
();
// from_id
fetch_int
();
// to_id
int
l
=
prefetch_strlen
();
...
...
@@ -690,7 +696,9 @@ void tglf_fetch_message_short_chat (struct tgl_message *M) {
tglu_fetch_pts
();
fetch_int
();
//tglu_fetch_seq ();
fetch_int
();
int
seq
=
fetch_int
();
assert
(
seq
==
tgl_state
.
seq
+
1
);
bl_do_msg_seq_update
(
id
);
}
}
...
...
updates.c
View file @
43397269
...
...
@@ -428,8 +428,10 @@ static int do_skip_seq (int seq) {
return
-
1
;
}
if
(
tgl_state
.
locks
&
TGL_LOCK_DIFF
)
{
vlogprintf
(
E_DEBUG
,
"Update during get_difference. seq = %d
\n
"
,
seq
);
return
-
1
;
}
vlogprintf
(
E_DEBUG
,
"Ok update. seq = %d
\n
"
,
seq
);
return
0
;
}
else
{
return
-
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