otalk-collection-messages

2.0.0 • Public • Published

otalk-collection-messages

An Ampersand collection for storing messages, with additional indexing based on both bare and full JIDs.

Installing

$ npm install otalk-collection-messages

Reference

Standard ampersand-collection API, plus:

.findMessage(jid, id)

Find a message with the desired ID that was sent to or by the given JID.

.clearIndex(jid)

Clear out the index for the given JID. This is typically done in MUC contexts when a MUC occupant leaves and rejoins the room, because it might not be the same person behind the new JID.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i otalk-collection-messages

Weekly Downloads

0

Version

2.0.0

License

MIT

Last publish

Collaborators

  • lancestout