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
80998dc7
Commit
80998dc7
authored
Aug 24, 2014
by
vvaltman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in set_friend()
parent
e57b7064
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
binlog.c
binlog.c
+0
-4
interface.c
interface.c
+1
-1
updates.c
updates.c
+2
-2
No files found.
binlog.c
View file @
80998dc7
...
...
@@ -230,7 +230,6 @@ static int fetch_comb_binlog_user_set_phone (void *extra) {
}
U
->
user
.
phone
=
fetch_str_dup
();
if
(
tgl_state
.
callback
.
user_update
)
{
tgl_state
.
callback
.
user_update
((
void
*
)
U
,
TGL_UPDATE_PHONE
);
}
...
...
@@ -241,9 +240,6 @@ static int fetch_comb_binlog_user_set_friend (void *extra) {
tgl_peer_id_t
id
=
TGL_MK_USER
(
fetch_int
());
tgl_peer_t
*
U
=
tgl_peer_get
(
id
);
assert
(
U
);
if
(
U
->
user
.
phone
)
{
tfree_str
(
U
->
user
.
phone
);
}
int
friend
=
fetch_int
();
if
(
friend
)
{
U
->
flags
|=
FLAG_USER_CONTACT
;
}
else
{
U
->
flags
&=
~
FLAG_USER_CONTACT
;
}
...
...
interface.c
View file @
80998dc7
...
...
@@ -617,7 +617,7 @@ void print_user_info_gw (void *extra, int success, struct tgl_user *U) {
push_color
(
COLOR_YELLOW
);
printf
(
"User "
);
print_user_name
(
U
->
id
,
C
);
printf
(
"
:
\n
"
);
printf
(
"
(#%d):
\n
"
,
tgl_get_peer_id
(
U
->
id
)
);
printf
(
"
\t
real name: %s %s
\n
"
,
U
->
real_first_name
,
U
->
real_last_name
);
printf
(
"
\t
phone: %s
\n
"
,
U
->
phone
);
if
(
U
->
status
.
online
>
0
)
{
...
...
updates.c
View file @
80998dc7
...
...
@@ -69,7 +69,7 @@ void tglu_fetch_date (void) {
}
}
void
tglu_fetch_seq
(
void
)
{
/*
void tglu_fetch_seq (void) {
int x = fetch_int ();
if (x > tgl_state.seq + 1) {
vlogprintf (E_NOTICE, "Hole in seq: seq = %d, x = %d\n", tgl_state.seq, x);
...
...
@@ -79,7 +79,7 @@ void tglu_fetch_seq (void) {
tgl_state.seq = x;
bl_do_set_seq (tgl_state.seq);
}
}
}
*/
static
void
fetch_dc_option
(
void
)
{
assert
(
fetch_int
()
==
CODE_dc_option
);
...
...
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