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
3755d426
Commit
3755d426
authored
Oct 23, 2013
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed geopoint link view
parent
045467b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
interface.c
interface.c
+2
-3
No files found.
interface.c
View file @
3755d426
...
@@ -454,7 +454,7 @@ const char *message_media_type_str (struct message_media *M) {
...
@@ -454,7 +454,7 @@ const char *message_media_type_str (struct message_media *M) {
case
CODE_message_media_video
:
case
CODE_message_media_video
:
return
"[video]"
;
return
"[video]"
;
case
CODE_message_media_geo
:
case
CODE_message_media_geo
:
sprintf
(
buf
,
"[geo]
%.6lf:
%.6lf"
,
M
->
geo
.
latitude
,
M
->
geo
.
longitude
);
sprintf
(
buf
,
"[geo]
https://maps.google.com/maps?ll=%.6lf,
%.6lf"
,
M
->
geo
.
latitude
,
M
->
geo
.
longitude
);
return
buf
;
return
buf
;
case
CODE_message_media_contact
:
case
CODE_message_media_contact
:
snprintf
(
buf
,
999
,
"[contact] "
COLOR_RED
"%s %s"
COLOR_NORMAL
" %s"
,
M
->
first_name
,
M
->
last_name
,
M
->
phone
);
snprintf
(
buf
,
999
,
"[contact] "
COLOR_RED
"%s %s"
COLOR_NORMAL
" %s"
,
M
->
first_name
,
M
->
last_name
,
M
->
phone
);
...
@@ -502,8 +502,7 @@ void print_media (struct message_media *M) {
...
@@ -502,8 +502,7 @@ void print_media (struct message_media *M) {
printf
(
"[video]"
);
printf
(
"[video]"
);
return
;
return
;
case
CODE_message_media_geo
:
case
CODE_message_media_geo
:
printf
(
"[geo] "
);
printf
(
"[geo] https://maps.google.com/?q=%.6lf,%.6lf"
,
M
->
geo
.
latitude
,
M
->
geo
.
longitude
);
printf
(
"%.6lf:%.6lf"
,
M
->
geo
.
latitude
,
M
->
geo
.
longitude
);
return
;
return
;
case
CODE_message_media_contact
:
case
CODE_message_media_contact
:
printf
(
"[contact] "
);
printf
(
"[contact] "
);
...
...
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