[native][web] Trigger sendCallbacks on retries
Summary:
This is part 3 of my comment on D7388:
Part of the issue is that sendCallbacks would not be triggered from a retry. So if a user searched for a thread with an already-existing local pending message (that failed to send), the retry of the failed message would not clear the "search". This problem exists for native as well, and is addressed in yet another diff later in the stack.
Depends on D7407
Test Plan:
On both native and web, I performed the following steps:
- Start trying to create a chat that does not exist. On native, it needs to be with two friends of the test user (otherwise the search experience closes when you select a non-friend, and you already have a chat with all current friends)
- Kill your local keyserver and then try creating the chat by sending a media or text message (try both)
- It should fail. Now go back, and bring up the same "pending chat" by repeating the steps in 1
- Hit the "RETRY?" button and make sure the "search" experience goes away
Reviewers: tomek, inka
Reviewed By: tomek
Subscribers: atul
Differential Revision: https://phab.comm.dev/D7408