This is the DM equivalent of the earlier keyserver change. It makes DMs respect getMessageNotifyType: if that function does not return messageNotifyTypes.SET_UNREAD or messageNotifyTypes.NOTIF_AND_SET_UNREAD for a given message, then that message will not set the thread to unread.
Depends on D14342