|
@@ -87,10 +87,6 @@ converse.plugins.add('converse-chat', {
|
|
|
|
|
|
async initialize () {
|
|
|
this.initialized = u.getResolveablePromise();
|
|
|
- this.on('invalid', () => {
|
|
|
- log.error("Message not created due to validation error!");
|
|
|
- log.error(this.toJSON());
|
|
|
- });
|
|
|
if (this.get('type') === 'chat') {
|
|
|
ModelWithContact.prototype.initialize.apply(this, arguments);
|
|
|
this.setRosterContact(Strophe.getBareJidFromJid(this.get('from')));
|
|
@@ -109,10 +105,6 @@ converse.plugins.add('converse-chat', {
|
|
|
this.initialized.resolve();
|
|
|
},
|
|
|
|
|
|
- validate (attrs) {
|
|
|
- return !u.shouldCreateMessage(attrs);
|
|
|
- },
|
|
|
-
|
|
|
/**
|
|
|
* Sets an auto-destruct timer for this message, if it's is_ephemeral.
|
|
|
* @private
|