Fix opening draft conversations
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / files / lib / page / ConversationPage.class.php
index b7b2ec11a53dbafb3c00721eb67ffc505a03eed2..fe520b14eeb17b1a1aa988972d7709994e786e88 100644 (file)
@@ -303,6 +303,11 @@ class ConversationPage extends MultipleLinkPage
             }
         }
 
+        // Drafts do not store their participants in conversation_to_user.
+        if ($this->conversation->isDraft) {
+            $visibleParticipantIDs[] = $this->conversation->userID;
+        }
+
         // load modification log entries
         $this->modificationLogList = new ConversationLogModificationLogList($this->conversation->conversationID);
         $this->modificationLogList->getConditionBuilder()