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
83972316
Commit
83972316
authored
Oct 26, 2013
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed read of notify settings
parent
ac882621
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
mtproto-common.h
mtproto-common.h
+2
-1
structures.c
structures.c
+9
-2
No files found.
mtproto-common.h
View file @
83972316
...
...
@@ -74,7 +74,8 @@
#define CODE_ping_delay_disconnect 0xf3427b8c
#define CODE_gzip_packed 0x3072cfa1
#define CODE_input_peer_notify_settings_old 0x3cf4b1be
#define CODE_peer_notify_settings_old 0xddbcd4a5
/* not really a limit, for struct encrypted_message only */
// #define MAX_MESSAGE_INTS 16384
#define MAX_MESSAGE_INTS 1048576
...
...
structures.c
View file @
83972316
...
...
@@ -271,14 +271,21 @@ void fetch_chat (struct chat *C) {
void
fetch_notify_settings
(
void
)
{
unsigned
x
=
fetch_int
();
assert
(
x
==
CODE_peer_notify_settings
||
x
==
CODE_peer_notify_settings_empty
);
if
(
x
==
CODE_peer_notify_settings
)
{
assert
(
x
==
CODE_peer_notify_settings
||
x
==
CODE_peer_notify_settings_empty
||
x
==
CODE_peer_notify_settings_old
);
if
(
x
==
CODE_peer_notify_settings
_old
)
{
fetch_int
();
// mute_until
int
l
=
prefetch_strlen
();
fetch_str
(
l
);
fetch_bool
();
// show_previews
fetch_int
();
// peer notify events
}
if
(
x
==
CODE_peer_notify_settings
)
{
fetch_int
();
// mute_until
int
l
=
prefetch_strlen
();
fetch_str
(
l
);
fetch_bool
();
// show_previews
fetch_int
();
// events_mask
}
}
void
fetch_chat_full
(
struct
chat
*
C
)
{
...
...
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