aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-12 00:57:00 -0700
committerfriendica <info@friendica.com>2013-10-12 00:57:00 -0700
commitc459228dca89b40189fc50b2cf12f5800ea3c257 (patch)
treebf890d96d228563ecdbb703093dff0aad59f0fae /mod
parent1c8a36f9ca1f1cfd4cab47b47c855b530467593d (diff)
downloadvolse-hubzilla-c459228dca89b40189fc50b2cf12f5800ea3c257.tar.gz
volse-hubzilla-c459228dca89b40189fc50b2cf12f5800ea3c257.tar.bz2
volse-hubzilla-c459228dca89b40189fc50b2cf12f5800ea3c257.zip
show private message conversant in sidebar because without a reply you may not remember who it is/was.
Diffstat (limited to 'mod')
-rw-r--r--mod/message.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/message.php b/mod/message.php
index 058641a5e..1b4c6ae26 100644
--- a/mod/message.php
+++ b/mod/message.php
@@ -378,6 +378,16 @@ function message_content(&$a) {
return $o;
}
+ $other_channel = null;
+ if($messages[0]['to_xchan'] === $channel['channel_hash'])
+ $other_channel = $messages[0]['from'];
+ else
+ $other_channel = $messages[0]['to'];
+
+ require_once('include/Contact.php');
+
+ $a->set_widget('mail_conversant',vcard_from_xchan($other_channel,$get_observer_hash,'mail'));
+
$tpl = get_markup_template('msg-header.tpl');
@@ -461,6 +471,7 @@ function message_content(&$a) {
$tpl = get_markup_template('mail_display.tpl');
$o = replace_macros($tpl, array(
+ '$prvmsg_header' => t('Private Conversation'),
'$thread_id' => $a->argv[1],
'$thread_subject' => $message['title'],
'$thread_seen' => $seen,