aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-09-28 17:40:38 +0200
committerMario Vavti <mario@mariovavti.com>2015-09-28 17:40:38 +0200
commitb97102da01b2e81018e86c29092059704ee20da8 (patch)
tree8789f3e4f9792121245316f5a10a1f6146ec1c1c /include
parented876a9c529f59fa62bb45805aa4f355fe0e2c0d (diff)
downloadvolse-hubzilla-b97102da01b2e81018e86c29092059704ee20da8.tar.gz
volse-hubzilla-b97102da01b2e81018e86c29092059704ee20da8.tar.bz2
volse-hubzilla-b97102da01b2e81018e86c29092059704ee20da8.zip
private mail: bring additional inbox/outbox views and ajaxify single message drop
Diffstat (limited to 'include')
-rw-r--r--include/widgets.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 9f8b88d54..9c8596a66 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -637,6 +637,7 @@ function widget_conversations($arr) {
foreach($r as $rr) {
$messages[] = array(
+ 'mailbox' => $mailbox,
'id' => $rr['id'],
'from_name' => $rr['from']['xchan_name'],
'from_url' => chanlink_hash($rr['from_xchan']),
@@ -648,7 +649,8 @@ function widget_conversations($arr) {
'delete' => t('Delete conversation'),
'body' => $rr['body'],
'date' => datetime_convert('UTC',date_default_timezone_get(),$rr['created'], t('D, d M Y - g:i A')),
- 'seen' => $rr['seen']
+ 'seen' => $rr['seen'],
+ 'selected' => ((argv(2)) ? (argv(2) == $rr['id']) : ($r[0]['id'] == $rr['id']))
);
}