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
8d9861af
Commit
8d9861af
authored
10 years ago
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed no_ids
parent
ca194bef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
interface.c
interface.c
+4
-2
No files found.
interface.c
View file @
8d9861af
...
...
@@ -2354,7 +2354,7 @@ int unknown_user_list[1000];
void
print_user_name
(
struct
in_ev
*
ev
,
tgl_peer_id_t
id
,
tgl_peer_t
*
U
)
{
assert
(
tgl_get_peer_type
(
id
)
==
TGL_PEER_USER
);
mpush_color
(
ev
,
COLOR_RED
);
if
(
!
U
||
use_ids
)
{
if
(
!
U
)
{
mprintf
(
ev
,
"user#%d"
,
tgl_get_peer_id
(
id
));
int
i
;
int
ok
=
1
;
...
...
@@ -2375,7 +2375,9 @@ void print_user_name (struct in_ev *ev, tgl_peer_id_t id, tgl_peer_t *U) {
if
((
U
->
flags
&
FLAG_DELETED
))
{
mprintf
(
ev
,
"deleted user#%d"
,
tgl_get_peer_id
(
id
));
}
else
if
(
!
(
U
->
flags
&
FLAG_CREATED
))
{
mprintf
(
ev
,
"empty user#%d"
,
tgl_get_peer_id
(
id
));
mprintf
(
ev
,
"user#%d"
,
tgl_get_peer_id
(
id
));
}
else
if
(
use_ids
)
{
mprintf
(
ev
,
"user#%d"
,
tgl_get_peer_id
(
id
));
}
else
if
(
!
U
->
user
.
first_name
||
!
strlen
(
U
->
user
.
first_name
))
{
mprintf
(
ev
,
"%s"
,
U
->
user
.
last_name
);
}
else
if
(
!
U
->
user
.
last_name
||
!
strlen
(
U
->
user
.
last_name
))
{
...
...
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