Should be the last message so either max(id) or latest datetime in this case, counter_party_id is just an user id the most recent counter_party_id does not mean the max counter_party_id(I found the solution in the answers and I gave props):
SELECT *
FROM yourTable
WHERE counter_party_id = ( SELECT MAX(id) FROM yourTable )
or
SELECT *
FROM yourTable
WHERE counter_party_id = ( SELECT counter_party_id FROM yourTable ORDER BY m.time_send DESC LIMIT 1)
Reason being is that I simplified the example but I had to implement this in a much more complicated scheme.