Updated code to select last direct message

Updated code to select last direct message to show in main direct message view after deletion