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
e7d7bc57
Commit
e7d7bc57
authored
Jan 05, 2016
by
V V
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed reply_id in json and lua
parent
2bfcbf0a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
json-tg.c
json-tg.c
+4
-1
lua-tg.c
lua-tg.c
+4
-1
No files found.
json-tg.c
View file @
e7d7bc57
...
@@ -431,7 +431,10 @@ json_t *json_pack_message (struct tgl_message *M) {
...
@@ -431,7 +431,10 @@ json_t *json_pack_message (struct tgl_message *M) {
}
}
if
(
M
->
reply_id
)
{
if
(
M
->
reply_id
)
{
assert
(
json_object_set
(
res
,
"reply_id"
,
json_integer
(
M
->
reply_id
))
>=
0
);
tgl_message_id_t
msg_id
=
M
->
permanent_id
;
msg_id
.
id
=
M
->
reply_id
;
assert
(
json_object_set
(
res
,
"reply_id"
,
json_string
(
print_permanent_msg_id
(
msg_id
)))
>=
0
);
}
}
if
(
M
->
flags
&
TGLMF_MENTION
)
{
if
(
M
->
flags
&
TGLMF_MENTION
)
{
...
...
lua-tg.c
View file @
e7d7bc57
...
@@ -482,7 +482,10 @@ void push_message (struct tgl_message *M) {
...
@@ -482,7 +482,10 @@ void push_message (struct tgl_message *M) {
}
}
if
(
M
->
reply_id
)
{
if
(
M
->
reply_id
)
{
lua_add_num_field
(
"reply_id"
,
M
->
reply_id
);
tgl_message_id_t
msg_id
=
M
->
permanent_id
;
msg_id
.
id
=
M
->
reply_id
;
lua_add_string_field
(
"reply_id"
,
print_permanent_msg_id
(
msg_id
));
}
}
if
(
M
->
flags
&
TGLMF_MENTION
)
{
if
(
M
->
flags
&
TGLMF_MENTION
)
{
...
...
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