In context, Christ was referring to discipline (training), for purposes of restorating a brother or sister from sin. This could be used for fellowship or worship as well, that Christ would be there.
For where two or have gathered together in My name, I am there in their midst.”
Matthew 18:20 NASB