Regression: Remove deprecated Omnichannel setting used to fetch the queue data through subscription (#17017)
* Removed deprecated omnichannel setting, * Remove unnecessary setting creation. * Add method to clear the inquiry collection on client-side before set up the stream.pull/16761/head
parent
54b5523618
commit
e16ef75be1
@ -1,11 +1,3 @@ |
||||
import { Mongo } from 'meteor/mongo'; |
||||
|
||||
import { settings } from '../../../settings/client'; |
||||
|
||||
let collection; |
||||
export const getLivechatInquiryCollection = () => { |
||||
if (!collection) { |
||||
collection = new Mongo.Collection(settings.get('Livechat_enable_inquiry_fetch_by_stream') ? null : 'rocketchat_livechat_inquiry'); |
||||
} |
||||
return collection; |
||||
}; |
||||
export const LivechatInquiry = new Mongo.Collection(null); |
||||
|
||||
@ -0,0 +1,14 @@ |
||||
import { |
||||
Migrations, |
||||
} from '../../../app/migrations'; |
||||
import { |
||||
Settings, |
||||
} from '../../../app/models'; |
||||
|
||||
|
||||
Migrations.add({ |
||||
version: 178, |
||||
up() { |
||||
Settings.remove({ _id: 'Livechat_enable_inquiry_fetch_by_stream' }); |
||||
}, |
||||
}); |
||||
Loading…
Reference in new issue