iphone 7 - messages on lock screen showing separately from the same sender
You need to re-enable the grouping setting:

Go to Settings → Notifications → Messages → Scroll down to Notification Grouping → Set it to Automatic