openNewMessage ينقصه tags parameter

أنا أكتب إضافة تحتاج إلى إنشاء رسالة خاصة تتضمن علامة. composer.openNewTopic تتضمن معلمة علامات، ولكن openNewMessage لا تتضمنها.

https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/services/composer.js#L1461-L1472

هل يمكنني تقديم رسالة خاصة بسيطة تتضمن فقط إضافة معلمة العلامات كما يلي؟ هل ستحتاج إلى اختبارات لإظهار أنها تعمل، أم أنه لا بأس بتعديل السطرين فقط؟

  @action
  async openNewMessage({ title, body, recipients, hasGroups, tags }) {
    return this.open({
      action: Composer.PRIVATE_MESSAGE,
      recipients,
      topicTitle: title,
      topicBody: body,
      tags,
      archetypeId: "private_message",
      draftKey: Composer.NEW_PRIVATE_MESSAGE_KEY,
      hasGroups,
    });
  }
إعجاب واحد (1)