Mute/unmute not working on p2p

hello, i have created a custom ui using lib-jitsi-meet in react application this issue only arise in p2p connection when one user mutes the video and unmute ,then video stream does not start again. if i disable the p2p in config then it works fine. also it works fine when the third user joins