From c63b6371bcb47779fdc62d2a3f870f92d8af2618 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Sun, 18 Sep 2022 07:45:22 +0200 Subject: [PATCH] fix: post channel reminders as custom message type (#220) This fixes the "@channel" and "@here" keywords not triggering mentions. By default, bot users are not allowed to trigger channel mentions. However, if the message type is not the default, this check is bypassed. Fix #204 --- server/reminder.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/reminder.go b/server/reminder.go index 2ea8226..9663cd6 100755 --- a/server/reminder.go +++ b/server/reminder.go @@ -281,6 +281,7 @@ func (p *Plugin) TriggerReminders() { ChannelId: channel.Id, PendingPostId: model.NewId() + ":" + fmt.Sprint(model.GetMillis()), UserId: p.remindUserId, + Type: model.POST_CUSTOM_TYPE_PREFIX + "reminder", Message: T("reminder.message", messageParameters), Props: model.StringInterface{}, }