Added checkThreadHeader method in Messages app