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
976c23f3
Commit
976c23f3
authored
Nov 22, 2013
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed (probable) bug with updateChatParticipants
parent
f4ac638c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
mtproto-client.c
mtproto-client.c
+15
-7
No files found.
mtproto-client.c
View file @
976c23f3
...
...
@@ -977,20 +977,28 @@ void work_update (struct connection *c UU, long long msg_id UU) {
break
;
case
CODE_update_chat_participants
:
{
assert
(
fetch_int
()
==
CODE_chat_participants
);
unsigned
x
=
fetch_int
();
assert
(
x
==
CODE_chat_participants
||
x
==
CODE_chat_participants_forbidden
);
peer_id_t
chat_id
=
MK_CHAT
(
fetch_int
());
fetch_int
();
// admin_id
assert
(
fetch_int
()
==
CODE_vector
);
int
n
=
fetch_int
();
fetch_skip
(
n
*
4
);
fetch_int
();
// version
int
n
=
0
;
if
(
x
==
CODE_chat_participants
)
{
fetch_int
();
// admin_id
assert
(
fetch_int
()
==
CODE_vector
);
int
n
=
fetch_int
();
fetch_skip
(
n
*
4
);
fetch_int
();
// version
}
peer_t
*
C
=
user_chat_get
(
chat_id
);
print_start
();
push_color
(
COLOR_YELLOW
);
print_date
(
time
(
0
));
printf
(
" Chat "
);
print_chat_name
(
chat_id
,
C
);
printf
(
" changed list: now %d members
\n
"
,
n
);
if
(
x
==
CODE_chat_participants
)
{
printf
(
" changed list: now %d members
\n
"
,
n
);
}
else
{
printf
(
" changed list, but we are forbidden to know about it (Why this update even was sent to us?
\n
"
);
}
pop_color
();
print_end
();
}
...
...
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