summaryrefslogtreecommitdiffstats
path: root/app/import.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/import.go')
-rw-r--r--app/import.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/import.go b/app/import.go
index 10a915b2a..c50c6d62d 100644
--- a/app/import.go
+++ b/app/import.go
@@ -581,11 +581,11 @@ func ImportUserChannels(user *model.User, team *model.Team, data *[]UserChannelI
notifyProps := member.NotifyProps
if cdata.NotifyProps.Desktop != nil {
- notifyProps["desktop"] = *cdata.NotifyProps.Desktop
+ notifyProps[model.DESKTOP_NOTIFY_PROP] = *cdata.NotifyProps.Desktop
}
if cdata.NotifyProps.MarkUnread != nil {
- notifyProps["mark_unread"] = *cdata.NotifyProps.MarkUnread
+ notifyProps[model.MARK_UNREAD_NOTIFY_PROP] = *cdata.NotifyProps.MarkUnread
}
if _, err := UpdateChannelMemberNotifyProps(notifyProps, channel.Id, user.Id); err != nil {