MessageFetchParams constructor

MessageFetchParams({
  1. required Map<String, dynamic> context,
  2. required int channelId,
  3. int limit = 30,
})

Implementation

factory MessageFetchParams({
  required Map<String, dynamic> context,
  required int channelId,
  int limit = 30,
}) =>
    MessageFetchParams._(
      args: [],
      kwargs: {
        'context': context,
        'limit': limit,
        'domain': [
          [
            'channel_ids',
            'in',
            [channelId],
          ]
        ],
      },
      method: 'message_fetch',
      model: 'mail.message',
    );