Merge consecutive messages