Skip to content

v9.7.3-beta.4

@isekovanic isekovanic tagged this 06 Aug 15:08
## 🎯 Goal

Resolves [this Zendesk
ticket](https://getstream.zendesk.com/agent/tickets/82587).

## 🛠 Implementation details

`expo-clipboard` has changed their API from the synchronous `setString`
to the asynchronous `setStringAsync`. Our optional dependency for this
exact purpose was never really updated and so copying messages did not
work whenever using `stream-chat-expo`.

In this PR we address that.

Additionally, I noticed that a confirmation/failure snackbar was missing
from the clipboard feature and so we add one as well. Since changing to
an async API is technically breaking, we'll rely on the success/failure
callbacks for now and update this in the next major. We anyway want to
get rid of the dependencies to these super small libraries and keep them
inhouse.

Will be backported to V8 as well.

## 🎨 UI Changes

<!-- Add relevant screenshots -->

<details>
<summary>iOS</summary>


<table>
    <thead>
        <tr>
            <td>Before</td>
            <td>After</td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <!--<img src="" /> -->
            </td>
            <td>
                <!--<img src="" /> -->
            </td>
        </tr>
    </tbody>
</table>
</details>


<details>
<summary>Android</summary>

<table>
    <thead>
        <tr>
            <td>Before</td>
            <td>After</td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <!--<img src="" /> -->
            </td>
            <td>
                <!--<img src="" /> -->
            </td>
        </tr>
    </tbody>
</table>
</details>

## 🧪 Testing

<!-- Explain how this change can be tested (or why it can't be tested)
-->

## ☑️ Checklist

- [ ] I have signed the [Stream
CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform)
(required)
- [ ] PR targets the `develop` branch
- [ ] Documentation is updated
- [ ] New code is tested in main example apps, including all possible
scenarios
  - [ ] SampleApp iOS and Android
  - [ ] Expo iOS and Android
Assets 2
Loading