mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Fix potential issue
This commit is contained in:
		@@ -84,9 +84,15 @@ class _CallScreenState extends SafeState<CallScreen> {
 | 
			
		||||
      setState(() {});
 | 
			
		||||
 | 
			
		||||
      // Register to events
 | 
			
		||||
      this.listenChangeState<UserJoinedCallEvent>((e) {
 | 
			
		||||
        // TODO : get user information if required
 | 
			
		||||
        if (e.callID == convID) _membersList.add(CallMember(userID: e.userID));
 | 
			
		||||
      this.listen<UserJoinedCallEvent>((e) async {
 | 
			
		||||
        if (e.callID != convID) return;
 | 
			
		||||
        try {
 | 
			
		||||
          if (!_usersList.hasUser(e.userID))
 | 
			
		||||
            _usersList.add(await UsersHelper().getSingleWithThrow(e.userID));
 | 
			
		||||
          setState(() => _membersList.add(CallMember(userID: e.userID)));
 | 
			
		||||
        } catch (e, stack) {
 | 
			
		||||
          print("$e\n$stack");
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
      this.listen<UserLeftCallEvent>((e) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user