aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Conversations.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Widget/Conversations.php')
-rw-r--r--Zotlabs/Widget/Conversations.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Widget/Conversations.php b/Zotlabs/Widget/Conversations.php
index 27e517c02..56510750f 100644
--- a/Zotlabs/Widget/Conversations.php
+++ b/Zotlabs/Widget/Conversations.php
@@ -12,10 +12,6 @@ class Conversations {
if(argc() > 1) {
switch(argv(1)) {
- case 'combined':
- $mailbox = 'combined';
- $header = t('Conversations');
- break;
case 'inbox':
$mailbox = 'inbox';
$header = t('Received Messages');
@@ -44,6 +40,8 @@ class Conversations {
foreach($r as $rr) {
+ $selected = ((argc() == 3) ? intval(argv(2)) == intval($rr['id']) : $r[0]['id'] == $rr['id']);
+
$messages[] = array(
'mailbox' => $mailbox,
'id' => $rr['id'],
@@ -58,7 +56,7 @@ class Conversations {
'body' => $rr['body'],
'date' => datetime_convert('UTC',date_default_timezone_get(),$rr['created'], 'c'),
'seen' => $rr['seen'],
- 'selected' => ((argv(2)) ? (argv(2) == $rr['id']) : ($r[0]['id'] == $rr['id']))
+ 'selected' => ((argv(1) != 'new') ? $selected : '')
);
}
@@ -71,4 +69,6 @@ class Conversations {
}
return $o;
}
+
}
+