http://www.mattermost.org/ is doing it
https://github.com/mattermost/platform/blob/4ae72ad1a878fdf1...
Mattermost is explicitly a self-hosted solution. Their license does not appear strange to me; you can either use their builds, or build from source and adhere to the AGPL.