CingChat for iPhone · iOS 0.20.0 (20) Development prompt for review · §07 · Contact a company Add customer inquiries to native CingChat for iPhone. Reuse the CingLink company listing and the existing thread UI. Staff reply in the existing Android Cing2B app. Add Contact company / «Написать компании» to the public listing returned by GET /v1/companies/{id}. Use the verified status and server-provided representatives. Show their name, falling back to username, with their position where available. In the current customer session, POST /v1/chats with companyId and the selected representative’s userId. The 201 response contains id. Fetch GET /v1/chats/{id} and verify kind=business, companyId and companyRepresentativeId before opening the thread, including a newly created empty thread. Prevent double navigation on repeated taps. Discard a late response after leaving the listing, signing out or changing the company or recipient. On a permission denial refresh the representatives and allow a new selection. Reuse /v1/chats/{id}/messages for message reads and sends. Retain the original clientId when retrying the same message. Display inquiryStatus. Render company replies from asCompanyId and the name, role and position in companyAuthor when present. Respect canSend and explain sendUnavailableReason, including representative_unavailable and inquiry_blocked. Recheck permission before retrying a queued send after connectivity or access changes. Keep the draft and readable history in this thread. Refresh that same inquiry when an authorized administrator replies. Use server IDs for navigation and queued sends. Keep a personal conversation with the representative separate. On both simulators check RU/EN labels, representative selection with large text, and the path from the listing through the first staff reply. Use synthetic companies with identical names, several contacts, and a personal chat with the selected employee. After reopening or a lost acknowledgement, verify the thread ID and message count. After revocation, verify that the customer can read history, sends are denied and the former representative loses access. After an authorized administrator of that company answers, send the customer’s next message in the original thread. Run the full iPhone suite. Include job links and captures of the listing, the conversation and the read-only state. For the hosted exchange, record the Android networking-client version, the cing2b session type and synthetic thread ID. For an installed Cing2B app test, record its version and device or emulator, open the inquiry from its inbox and send a reply through its UI. Mark that check unverified if it did not run. Server route and permissions https://github.com/cingchat1/cingchat/blob/672d688b76b0cdbf297b54d6f2c833f35f006302/backend/src/chats.ts#L101-L109 https://github.com/cingchat1/cingchat/blob/672d688b76b0cdbf297b54d6f2c833f35f006302/backend/src/business-inbox.ts#L16-L47 Reply and revocation checks https://github.com/cingchat1/cingchat/blob/672d688b76b0cdbf297b54d6f2c833f35f006302/backend/test/support/business-lifecycle.ts#L152-L196 Displaying the reply author in Android 1.0.83 https://github.com/cingchat1/cingchat/blob/14284dee1db4ece424f07f8376d770c0b396e23d/core/src/main/java/com/cinggroup/core/ChatScreens.kt#L1164-L1177