Review comments

This commit is contained in:
Neil Alexander 2020-05-14 13:02:41 +01:00
parent 4feba6f56f
commit 7d0c6ace54

View file

@ -129,7 +129,7 @@ func (r *RoomserverInternalAPI) performJoinRoomByID(
if err == nil && isInvitePending {
// Add the server of the person who invited us to the server list,
// as they should be a fairly good bet.
if _, inviterDomain, ierr := gomatrixserverlib.SplitID('!', inviteSender); ierr == nil {
if _, inviterDomain, ierr := gomatrixserverlib.SplitID('@', inviteSender); ierr == nil {
req.ServerNames = append(req.ServerNames, inviterDomain)
}