MM-16872 - Extend Plugin API to set LHS bot icon (#11601)

* MM-16872 - Extend Plugin API to set LHS bot icon

* MM-16872 - Using ReadSeeker as opposed to Reader for reading svg image file

* MM-16872 - PR feedback

* MM-16872 - Using userId rather than bot.UserId

* MM-16872 - Minor stylistic changes

* MM-16872 - Removing DriverName check
Этот коммит содержится в:
Ali Farooq
2019-07-11 12:00:12 -04:00
коммит произвёл GitHub
родитель 76f4fccf8a
Коммит 5ed40a48c8
10 изменённых файлов: 388 добавлений и 57 удалений

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

@@ -569,6 +569,22 @@ type API interface {
//
// Minimum server version: 5.10
PermanentDeleteBot(botUserId string) *model.AppError
// GetBotIconImage gets LHS bot icon image.
//
// Minimum server version: 5.14
GetBotIconImage(botUserId string) ([]byte, *model.AppError)
// SetBotIconImage sets LHS bot icon image.
// Icon image must be SVG format, all other formats are rejected.
//
// Minimum server version: 5.14
SetBotIconImage(botUserId string, data []byte) *model.AppError
// DeleteBotIconImage deletes LHS bot icon image.
//
// Minimum server version: 5.14
DeleteBotIconImage(botUserId string) *model.AppError
}
var handshake = plugin.HandshakeConfig{