> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# chat_manager::finish_processing_state_changes

> chat_manager::finish_processing_state_changes

# chat\_manager::finish\_processing\_state\_changes

Returns an array of Game Chat state changes that were being processed.

## Syntax

```cpp theme={null}
void finish_processing_state_changes(  
    game_chat_state_change_array stateChanges  
)  
```

### Parameters

*stateChanges*   \_In\_<br />Type: game\_chat\_state\_change\_array

The pointer to the array of changes previously returned by chat\_manager::start\_processing\_state\_changes() that have now been handled by the app.

### Return value

Type: void

## Remarks

This method informs the Game Chat library that all state changes reported by a previous call to chat\_manager::start\_processing\_state\_changes() have now been handled by the app, so their associated resources can be reclaimed. You must call chat\_manager::finish\_processing\_state\_changes() with the same pointer returned by chat\_manager::start\_processing\_state\_changes() before you're permitted to call chat\_manager::start\_processing\_state\_changes() again. You must do so even if 0 state change entries had been returned.

For best results, you should minimize the time you spend handling state changes before calling chat\_manager::finish\_processing\_state\_changes().

## Requirements

**Header:** GameChat2.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[chat\_manager](/reference/chat/gamechat2/classes/chat_manager/chat_manager)<br />[game\_chat\_state\_change](/reference/chat/gamechat2/structs/game_chat_state_change)<br />[game\_chat\_state\_change\_array](/reference/chat/gamechat2/structs/game_chat_state_change)<br />[chat\_manager::start\_processing\_state\_changes](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_start_processing_state_changes)


## Related topics

- [chat_manager::start_processing_state_changes](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_start_processing_state_changes.md)
- [game_chat_state_change](/reference/chat/gamechat2/structs/game_chat_state_change.md)
- [chat_manager::remove_user](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_remove_user.md)
- [Using the Game Chat 2 C++ API](/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)
- [game_chat_transcribed_chat_received_state_change](/reference/chat/gamechat2/structs/game_chat_transcribed_chat_received_state_change.md)
