aboutsummaryrefslogtreecommitdiffstats
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
parent4decceea760843dcc4bc4189026cdda1ecc4e32d (diff)
downloadvolse-hubzilla-7776c56c6c852f8a61e64e798f9c43f2c0ffada9.tar.gz
volse-hubzilla-7776c56c6c852f8a61e64e798f9c43f2c0ffada9.tar.bz2
volse-hubzilla-7776c56c6c852f8a61e64e798f9c43f2c0ffada9.zip
bring single message view to inbox/outbox view
-rw-r--r--mod/mail.php9
-rwxr-xr-xview/tpl/mail_conv.tpl1
-rwxr-xr-xview/tpl/mail_list.tpl2
3 files changed, 9 insertions, 3 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);
diff --git a/view/tpl/mail_conv.tpl b/view/tpl/mail_conv.tpl
index 7529f979a..4f54f1a6a 100755
--- a/view/tpl/mail_conv.tpl
+++ b/view/tpl/mail_conv.tpl
@@ -1,5 +1,4 @@
<div id="mail-{{$mail.id}}" class="mail-conv-outside-wrapper">
- <a name="mail-{{$mail.id}}"></a>
<div class="mail-conv-sender" >
<a href="{{$mail.from_url}}"><img class="mail-conv-sender-photo" src="{{$mail.from_photo}}" alt="{{$mail.from_name}}" /></a>
</div>
diff --git a/view/tpl/mail_list.tpl b/view/tpl/mail_list.tpl
index 7571fd783..fc9b5afa8 100755
--- a/view/tpl/mail_list.tpl
+++ b/view/tpl/mail_list.tpl
@@ -1,5 +1,5 @@
<li>
- <a href="mail/{{$message.mailbox}}/{{$message.id}}#mail-{{$message.id}}" class="{{if $message.selected}}active{{/if}}">
+ <a href="mail/{{$message.mailbox}}/{{$message.id}}" class="{{if $message.selected}}active{{/if}}">
<span class="{{if $message.seen}}seen{{else}}unseen{{/if}}">{{$message.subject}}</span><br>
<span class="conv-participants">{{$message.from_name}} > {{$message.to_name}}</span><br>
<span class="wall-item-ago autotime" title="{{$message.date}}">{{$message.date}}</span>