This website works better with JavaScript.
Home
Help
Sign In
narayana
/
telegabber
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
9
Wiki
Activity
Browse Source
gofmt
master
Bohdan Horbeshko
2 months ago
parent
501c1a7daa
commit
e2edbe37ea
3 changed files
with
4 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
telegram/utils.go
+1
-1
xmpp/gateway/gateway.go
+1
-1
xmpp/handlers.go
+ 2
- 1
telegram/utils.go
View File
@ -1009,8 +1009,9 @@ func (c *Client) OpenPhotoFile(photoFile *client.File, priority int32) (*os.File
file
,
err
:=
os
.
Open
(
path
)
if
err
==
nil
{
return
file
,
path
,
nil
}
else
// obtain the photo right now if still not downloaded
}
else
if
!
photoFile
.
Local
.
IsDownloadingCompleted
{
if
!
photoFile
.
Local
.
IsDownloadingCompleted
{
tdFile
,
tdErr
:=
c
.
DownloadFile
(
photoFile
.
Id
,
priority
,
true
)
if
tdErr
==
nil
{
path
=
tdFile
.
Local
.
Path
+ 1
- 1
xmpp/gateway/gateway.go
View File
@ -76,7 +76,7 @@ func SetNickname(to string, from string, nickname string, component *xmpp.Compon
Extensions
:
[
]
stanza
.
MsgExtension
{
stanza
.
PubSubEvent
{
EventElement
:
stanza
.
ItemsEvent
{
Node
:
NSNick
,
Node
:
NSNick
,
Items
:
[
]
stanza
.
ItemEvent
{
stanza
.
ItemEvent
{
Any
:
&
stanza
.
Node
{
+ 1
- 1
xmpp/handlers.go
View File
@ -474,7 +474,7 @@ func makeVCardPayload(typ byte, id, fn, photo, nickname, given, family, tel, inf
Node
:
NodeVCard4
,
List
:
[
]
stanza
.
Item
{
stanza
.
Item
{
Id
:
id
,
Id
:
id
,
Any
:
&
stanza
.
Node
{
XMLName
:
xml
.
Name
{
Local
:
"vcard"
}
,
Attrs
:
[
]
xml
.
Attr
{
Write
Preview
Loading…
Cancel
Save