Fetch channel members before constructing channel mgmt modal

This commit is contained in:
Max Brunsfeld 2023-08-03 12:10:53 -07:00
parent 6c4964f071
commit 9a1dd0c6bc
3 changed files with 19 additions and 10 deletions

View file

@ -123,7 +123,7 @@ impl ChannelStore {
pub fn get_channel_members(
&self,
channel_id: ChannelId,
) -> impl Future<Output = Result<HashMap<UserId, ChannelMemberStatus>>> {
) -> impl 'static + Future<Output = Result<HashMap<UserId, ChannelMemberStatus>>> {
let client = self.client.clone();
async move {
let response = client