implemented saving to chatlogs on sent message