Fixed get hostory to encrypted messages