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
c721eca5
Commit
c721eca5
authored
Aug 25, 2014
by
vvaltman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problems with read mark. Deleted unused code
parent
48c07091
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
277 deletions
+4
-277
queries.c
queries.c
+2
-2
structures.c
structures.c
+2
-2
updates.c
updates.c
+0
-273
No files found.
queries.c
View file @
c721eca5
...
...
@@ -1124,7 +1124,6 @@ static int get_history_on_answer (struct query *q UU) {
if
(
q
->
callback
)
{
((
void
(
*
)(
void
*
,
int
,
int
,
struct
tgl_message
**
))
q
->
callback
)
(
q
->
callback_extra
,
1
,
sn
,
ML
);
}
tfree
(
ML
,
sizeof
(
void
*
)
*
n
);
/*for (i = n - 1; i >= 0; i--) {
print_message (ML[i]);
...
...
@@ -1132,6 +1131,8 @@ static int get_history_on_answer (struct query *q UU) {
if
(
sn
>
0
&&
q
->
extra
)
{
tgl_do_messages_mark_read
(
*
(
tgl_peer_id_t
*
)
&
(
q
->
extra
),
ML
[
0
]
->
id
,
0
,
0
);
}
tfree
(
ML
,
sizeof
(
void
*
)
*
n
);
return
0
;
}
...
...
@@ -3026,7 +3027,6 @@ void tgl_do_create_group_chat (tgl_peer_id_t id, char *chat_topic, void (*callba
}
/* }}} */
/* {{{ Delete msg */
static
int
delete_msg_on_answer
(
struct
query
*
q
UU
)
{
...
...
structures.c
View file @
c721eca5
...
...
@@ -649,7 +649,7 @@ void tglf_fetch_message_short (struct tgl_message *M) {
//tglu_fetch_seq ();
fetch_int
();
bl_do_create_message_text
(
id
,
from_id
,
TGL_PEER_USER
,
to_id
,
date
,
0
,
l
,
s
);
bl_do_create_message_text
(
id
,
from_id
,
TGL_PEER_USER
,
to_id
,
date
,
1
,
l
,
s
);
}
else
{
fetch_int
();
// id
fetch_int
();
// from_id
...
...
@@ -679,7 +679,7 @@ void tglf_fetch_message_short_chat (struct tgl_message *M) {
//tglu_fetch_seq ();
fetch_int
();
bl_do_create_message_text
(
id
,
from_id
,
TGL_PEER_CHAT
,
to_id
,
date
,
0
,
l
,
s
);
bl_do_create_message_text
(
id
,
from_id
,
TGL_PEER_CHAT
,
to_id
,
date
,
1
,
l
,
s
);
}
else
{
fetch_int
();
// id
fetch_int
();
// from_id
...
...
updates.c
View file @
c721eca5
This diff is collapsed.
Click to expand it.
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