public void RequestPreviousMessages(string messageId, RoomViewModel room) { _client.GetPreviousMessages(messageId) .ContinueWith(_ => { var messages = ProcessMessages(_.Result); PostOnUi(() => room.AddPreviousMessages(messages)); }); }