Why master doesen`t see client`s messages

Options
Hello.
I learned about Photon just yesterday, and immediately went to do my first project.
It was supposed to be a simple chat for 2 people. After clicking on create / enter, the scene with input and text was loaded. What one wrote in the input should have been displayed in the text of the other.
But it did not work as it should.
What the first player wrote the second saw, and what the second wrote - the first is not.
I can’t understand what the error is.
Here is my code:

using Photon.Pun;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TextMang : MonoBehaviour, IPunObservable
{
public Text inp;
public Text inf;
public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)
{
if (stream.IsWriting)
{
stream.SendNext(inp.text);
}
else
{
inf.text = (string)stream.ReceiveNext();
//Debug.Log((string)stream.ReceiveNext());
}
}

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}