save chat log in memory

add  	save chat log in memory
add  	save chat log whose sender isn't chatting with me
modify	chat log's format