From 105381273d720102d6bbf2c324987249ea9cabe8 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 12 Apr 2022 12:27:10 +0000 Subject: [PATCH] fix: post channel reminders as custom message type 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{}, }