Fixed the mutual invitation issue
Fixed the mutual invitation issue by comparing the hash of the peerIDs