From aac82a687f19ace37d9cabe617c74f85c07ed291 Mon Sep 17 00:00:00 2001 From: Denis Zunke Date: Mon, 16 Jan 2017 20:24:35 +0100 Subject: [PATCH] Fix channel history output --- CHANGELOG | 1 + Slack/Channels.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 6469f8d..5ed86bf 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,7 @@ SlackBundle v2.2.0 ================== - Feature: Add Support to send Requests as POST instead of GET - Patch: Fix UsersList-Action, users email could be empty (by @mediafigaro) +- Patch: Fix channel history (found in fork by @elmpp) SlackBundle v2.1.0 ================== diff --git a/Slack/Channels.php b/Slack/Channels.php index d423736..eeef3db 100644 --- a/Slack/Channels.php +++ b/Slack/Channels.php @@ -133,7 +133,7 @@ public function history($channel, $from = null, $count = 10) $objMsg->setType(isset($message['subtype']) ? $message['subtype'] : $message['type']); $objMsg->setUserId(isset($message['user']) ? $message['user'] : null); $objMsg->setUsername(isset($message['username']) ? $message['username'] : null); - $objMsg->setContent($message['test']); + $objMsg->setContent($message['text']); $repository[] = $objMsg; }