Fix some duplicate message IDs in Bulk Importer. (#6850)

Этот коммит содержится в:
George Goldberg
2017-07-05 15:49:30 +01:00
коммит произвёл Corey Hulen
родитель 4219d39e97
Коммит 65289f26e7
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@@ -1081,14 +1081,14 @@ func ImportDirectPost(data *DirectPostImportData, dryRun bool) *model.AppError {
if len(userIds) == 2 {
ch, err := createDirectChannel(userIds[0], userIds[1])
if err != nil && err.Id != store.CHANNEL_EXISTS_ERROR {
return model.NewAppError("BulkImport", "app.import.import_direct_channel.create_direct_channel.error", nil, "", http.StatusBadRequest)
return model.NewAppError("BulkImport", "app.import.import_direct_post.create_direct_channel.error", nil, "", http.StatusBadRequest)
} else {
channel = ch
}
} else {
ch, err := createGroupChannel(userIds, userIds[0])
if err != nil && err.Id != store.CHANNEL_EXISTS_ERROR {
return model.NewAppError("BulkImport", "app.import.import_direct_channel.create_group_channel.error", nil, "", http.StatusBadRequest)
return model.NewAppError("BulkImport", "app.import.import_direct_post.create_group_channel.error", nil, "", http.StatusBadRequest)
} else {
channel = ch
}

Просмотреть файл

@@ -3060,11 +3060,11 @@
"translation": "Could not find channel member when importing direct channel post"
},
{
"id": "app.import.import_direct_channel.create_direct_channel.error",
"id": "app.import.import_direct_post.create_direct_channel.error",
"translation": "Failed to get direct channel"
},
{
"id": "app.import.import_direct_channel.create_group_channel.error",
"id": "app.import.import_direct_post.create_group_channel.error",
"translation": "Failed to get group channel"
},
{