sorting of online contacts to the top
fixed logging of multi-line messages