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
8fe86794
Commit
8fe86794
authored
Sep 25, 2015
by
V V
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated tgl
parent
d67c5218
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
interface.c
interface.c
+4
-6
tgl
tgl
+1
-1
No files found.
interface.c
View file @
8fe86794
...
...
@@ -2080,12 +2080,10 @@ void print_msg_list_gw (struct tgl_state *TLSR, void *extra, int success, int nu
void
print_msg_list_history_gw
(
struct
tgl_state
*
TLSR
,
void
*
extra
,
int
success
,
int
num
,
struct
tgl_message
*
ML
[])
{
print_msg_list_gw
(
TLSR
,
extra
,
success
,
num
,
ML
);
if
(
num
>
0
)
{
if
(
tgl_get_peer_type
(
ML
[
0
]
->
to_id
)
!=
TGL_PEER_CHANNEL
)
{
if
(
tgl_get_peer_type
(
ML
[
0
]
->
to_id
)
!=
TGL_PEER_USER
||
tgl_get_peer_id
(
ML
[
0
]
->
to_id
)
!=
TLS
->
our_id
)
{
tgl_do_messages_mark_read
(
TLS
,
ML
[
0
]
->
to_id
,
ML
[
0
]
->
id
,
0
,
NULL
,
NULL
);
}
else
{
tgl_do_messages_mark_read
(
TLS
,
ML
[
0
]
->
from_id
,
ML
[
0
]
->
id
,
0
,
NULL
,
NULL
);
}
if
(
tgl_get_peer_type
(
ML
[
0
]
->
to_id
)
!=
TGL_PEER_USER
||
tgl_get_peer_id
(
ML
[
0
]
->
to_id
)
!=
TLS
->
our_id
)
{
tgl_do_messages_mark_read
(
TLS
,
ML
[
0
]
->
to_id
,
ML
[
0
]
->
id
,
0
,
NULL
,
NULL
);
}
else
{
tgl_do_messages_mark_read
(
TLS
,
ML
[
0
]
->
from_id
,
ML
[
0
]
->
id
,
0
,
NULL
,
NULL
);
}
}
}
...
...
tgl
@
1cdaac62
Subproject commit
839885202494fb66fadad80e7c327000dc92b174
Subproject commit
1cdaac625b8af7312b909d8cbb655ec2807543c5
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