Skip to content

Commit

Permalink
Fix iOS send file bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
wubenqi committed Jan 15, 2019
1 parent 0aeb1d5 commit ae2959b
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,21 @@
package messages

import (
"fmt"
"github.com/golang/glog"
"github.com/nebula-chat/chatengine/mtproto"
"github.com/nebula-chat/chatengine/pkg/grpc_util"
"github.com/nebula-chat/chatengine/pkg/logger"
"github.com/nebula-chat/chatengine/mtproto"
"golang.org/x/net/context"
)

// messages.getDocumentByHash#338e2464 sha256:bytes size:int mime_type:string = Document;
func (s *MessagesServiceImpl) MessagesGetDocumentByHash(ctx context.Context, request *mtproto.TLMessagesGetDocumentByHash) (*mtproto.Document, error) {
md := grpc_util.RpcMetadataFromIncoming(ctx)
glog.Infof("MessagesGetDocumentByHash - metadata: %s, request: %s", logger.JsonDebugData(md), logger.JsonDebugData(request))
glog.Infof("messages.getDocumentByHash#338e2464 - metadata: %s, request: %s", logger.JsonDebugData(md), logger.JsonDebugData(request))

// TODO(@benqi): Impl MessagesGetDocumentByHash logic
document := mtproto.NewTLDocumentEmpty().To_Document()

return nil, fmt.Errorf("Not impl MessagesGetDocumentByHash")
glog.Infof("messages.getDocumentByHash#338e2464 - reply: %s", logger.JsonDebugData(document))
return document, nil
}

0 comments on commit ae2959b

Please sign in to comment.