mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
fix join response
This commit is contained in:
@@ -403,7 +403,7 @@ func (c *Chat) Join(ctx context.Context, req *pb.JoinRequest, stream pb.Chat_Joi
|
||||
}
|
||||
|
||||
// publish the message to the stream
|
||||
if err := stream.Send(&msg); err != nil {
|
||||
if err := stream.Send(&pb.JoinResponse{Message: &msg}); err != nil {
|
||||
logger.Errorf("Error sending message to stream. ChatID: %v. Message ID: %v. Error: %v", msg.RoomId, msg.Id, err)
|
||||
errChan <- err
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user