Skip to content

Commit

Permalink
fix: post channel reminders as custom message type
Browse files Browse the repository at this point in the history
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 scottleedavis#204
  • Loading branch information
kemenaran committed May 8, 2022
1 parent 3d1dede commit 76303c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/reminder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
}
Expand Down

0 comments on commit 76303c2

Please sign in to comment.