Update all Users's state and add a gravatar property based on user.state.email
. Result assigned to user.state.gravatar
.
require('chat-engine-gravatar')(configopt)
Example
chat = new ChatEngine.Chat(new Date().getTime());
user = new OCF.User('ian', {email: 'ian@pubnub.com'});
user.plugin(gravatar());
console.log(user.state.gravatar;
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
<optional> |
{}
|
The plugin config object Properties
|
- Source:
Members
(inner) state.gravatar
- Augments:
- Source: