Fixed bugs in commit "Started delivering message to byUserId first".
Fixed bugs in commit "Started delivering message to byUserId first".

AndreyTepaykin/Platform,AndreyTepaykin/Platform,AndreyTepaykin/Platform,AndreyTepaykin/Platform