“The context, BD, is that he was talking only to His disciples.”
Then why does He tell them to take it to the church?
Why does He tell where two of you agree or when two or three are gathered together?
Then why does He tell them to take it to the church?
Verses 15-17 are about one thing (brother sinning again you). Verse 18 is about something else (Christ's promise to the Apostles). They are not related.