Skip to content
Snippets Groups Projects

Issue #3337216: DI problems

Merged Taras Kravchuk requested to merge issue/private_message-3337216:3337216-di-problems into 3.0.x
3 files
+ 23
13
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -404,7 +404,9 @@ class AjaxController extends ControllerBase implements AjaxControllerInterface {
protected function loadThread(AjaxResponse $response) {
$thread_id = $this->requestStack->getCurrentRequest()->get('id');
if ($thread_id) {
$thread = PrivateMessageThread::load($thread_id);
$thread = $this->entityTypeManager
->getStorage('private_message_thread')
->load($thread_id);
if ($thread && $thread->access('view', $this->currentUser)) {
$this->privateMessageService->updateLastCheckTime();
Loading