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
87f014d3
Commit
87f014d3
authored
May 07, 2015
by
Vincent Castellano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added commented out reply support, missing from tgl library.
parent
8995e458
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
python-tg.c
python-tg.c
+11
-1
No files found.
python-tg.c
View file @
87f014d3
...
...
@@ -352,7 +352,17 @@ PyObject* get_message (struct tgl_message *M) {
PyDict_SetItemString
(
msg
,
"fwd_from"
,
get_peer
(
M
->
fwd_from_id
,
tgl_peer_get
(
TLS
,
M
->
fwd_from_id
)));
PyDict_SetItemString
(
msg
,
"fwd_date"
,
get_datetime
(
M
->
fwd_date
));
}
/* Need reply_id from https://github.com/vysheng/tgl/blob/master/tgl-layout.h#L471
if (M->reply_id) {
py_add_num_field ("reply_to_id", M->reply_id);
struct tgl_message *MR = tgl_message_get (TLS, M->reply_id);
// Message details available only within session for now
if (MR) {
PyDict_SetItemString(msg, "reply_to", get_message(MR));
}
}
*/
PyDict_SetItemString
(
msg
,
"from"
,
get_peer
(
M
->
from_id
,
tgl_peer_get
(
TLS
,
M
->
from_id
)));
PyDict_SetItemString
(
msg
,
"to"
,
get_peer
(
M
->
to_id
,
tgl_peer_get
(
TLS
,
M
->
to_id
)));
PyDict_SetItemString
(
msg
,
"out"
,
(
M
->
out
?
Py_True
:
Py_False
));
...
...
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