коммит произвёл
Harrison Healey
родитель
6830627faa
Коммит
bf2038bc41
@@ -55,10 +55,15 @@ func (a *App) SendNotifications(post *model.Post, team *model.Team, channel *mod
|
|||||||
|
|
||||||
if channel.Type == model.CHANNEL_DIRECT {
|
if channel.Type == model.CHANNEL_DIRECT {
|
||||||
var otherUserId string
|
var otherUserId string
|
||||||
if userIds := strings.Split(channel.Name, "__"); userIds[0] == post.UserId {
|
|
||||||
otherUserId = userIds[1]
|
userIds := strings.Split(channel.Name, "__")
|
||||||
} else {
|
|
||||||
otherUserId = userIds[0]
|
if userIds[0] != userIds[1] {
|
||||||
|
if userIds[0] == post.UserId {
|
||||||
|
otherUserId = userIds[1]
|
||||||
|
} else {
|
||||||
|
otherUserId = userIds[0]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, ok := profileMap[otherUserId]; ok {
|
if _, ok := profileMap[otherUserId]; ok {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user