Revert "swap pending and received around (bug 888038)"

This reverts commit b36588ea75558c996846e6797e8e2d1f23504cc9.