The feed card showed the contact button on the user's own ads (isOwner is
false in the main feed), and the backend rejects a chat with yourself
with 400. The button is now hidden when ad.userId is the current user,
and createOrGetChat logs the backend error message.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
createOrGetChat stored the clicked card's post for the returned chat id,
even when the backend returned an existing chat about another ad. The
chat then showed the new ad's image until the next list fetch replaced
it with the real one. The backend's chat.post is now the source of truth;
card data only adds the emoji for the same ad.
Also limit the chat input to 4000 characters, matching the backend.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>