Skip to content

Commit 64a58d7

Browse files
docs: remove unsupported addOnMessageCountChangeListener method
1 parent d61df78 commit 64a58d7

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

README.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -572,38 +572,6 @@ This takes a push registration token to send to Intercom to enable this device t
572572

573573
___
574574

575-
### `Intercom.addOnMessageCountChangeListener(callback)`
576-
577-
Sets a listener that will be notified when the unread conversation count for the registered user changes.
578-
579-
```javascript
580-
useEffect(() => {
581-
/**
582-
* Handle message count changed
583-
*/
584-
const event = Intercom.addOnMessageCountChangeListener(({count}) => {
585-
setCount(count);
586-
});
587-
588-
return () => {
589-
event();
590-
};
591-
}, []);
592-
593-
```
594-
595-
### Options
596-
597-
| Type | Type | Required |
598-
| ------- | -------- | -------- |
599-
| callback| function `({count: number}) => void` |yes |
600-
601-
### Returns
602-
603-
`removeEventListener: () => void`
604-
605-
___
606-
607575
### `Intercom.getUnreadConversationCount()`
608576

609577
Gets the number of unread conversations for a user.

0 commit comments

Comments
 (0)