aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-10-04 19:51:23 +0200
committerMario Vavti <mario@mariovavti.com>2015-10-04 19:51:23 +0200
commit7776c56c6c852f8a61e64e798f9c43f2c0ffada9 (patch)
treea3d45813204ce067126e2bc6d5fc3293b47be786 /mod
parent4decceea760843dcc4bc4189026cdda1ecc4e32d (diff)
downloadvolse-hubzilla-7776c56c6c852f8a61e64e798f9c43f2c0ffada9.tar.gz
volse-hubzilla-7776c56c6c852f8a61e64e798f9c43f2c0ffada9.tar.bz2
volse-hubzilla-7776c56c6c852f8a61e64e798f9c43f2c0ffada9.zip
bring single message view to inbox/outbox view
Diffstat (limited to 'mod')
-rw-r--r--mod/mail.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/mod/mail.php b/mod/mail.php
index ef9761509..23d1f5224 100644
--- a/mod/mail.php
+++ b/mod/mail.php
@@ -263,7 +263,14 @@ function mail_content(&$a) {
// if( local_channel() && feature_enabled(local_channel(),'richtext') )
// $plaintext = false;
- $messages = private_messages_fetch_conversation(local_channel(), $mid, true);
+
+
+ if($mailbox == 'combined') {
+ $messages = private_messages_fetch_conversation(local_channel(), $mid, true);
+ }
+ else {
+ $messages = private_messages_fetch_message(local_channel(), $mid, true);
+ }
if(! $messages) {
//info( t('Message not found.') . EOL);