1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-07-15 23:54:29 +02:00

Use GetDirectChannelOrCreate when notifying block chg in MPA mode (#4496)

* handle getDirectChannel returning nil,nil

* Use GetDirectChannelOrCreate for bot notify channel
This commit is contained in:
Doug Lauder
2023-01-20 07:55:07 -05:00
committed by GitHub
parent c6976db9e5
commit 23e7cf06de
8 changed files with 36 additions and 6 deletions

View File

@ -30,6 +30,7 @@ var FocalboardBot = &mm_model.Bot{
type ServicesAPI interface {
// Channels service
GetDirectChannel(userID1, userID2 string) (*mm_model.Channel, error)
GetDirectChannelOrCreate(userID1, userID2 string) (*mm_model.Channel, error)
GetChannelByID(channelID string) (*mm_model.Channel, error)
GetChannelMember(channelID string, userID string) (*mm_model.ChannelMember, error)
GetChannelsForTeamForUser(teamID string, userID string, includeDeleted bool) (mm_model.ChannelList, error)