SmartReplyExtensionDecorator constructor
SmartReplyExtensionDecorator(
- DataSource dataSource, {
- SmartReplyConfiguration? configuration,
Implementation
SmartReplyExtensionDecorator(super.dataSource, {this.configuration}) {
dateStamp = DateTime.now().microsecondsSinceEpoch.toString();
_listenerId = "ExtensionSmartReplyListener";
CometChatMessageEvents.removeMessagesListener(_listenerId);
CometChatUIEvents.removeUiListener(_listenerId);
CometChatMessageEvents.addMessagesListener(_listenerId, this);
CometChatUIEvents.addUiListener(_listenerId, this);
getLoggedInUser();
}