Messages app improvements. Output escaped. Display limit added as Default Setting. Media download fixed. Sending of media/file attachments enabled, but not yet functional - waiting on feedback from provider.

This commit is contained in:
Nate
2018-12-29 11:13:18 -07:00
parent bfd0f89268
commit ab0acd1fa1
8 changed files with 215 additions and 103 deletions

View File

@@ -121,11 +121,11 @@
foreach($numbers as $number) {
echo " <tr><td valign='top' class='".$row_style[$c]."' onclick=\"load_thread('".urlencode($number)."');\">";
if ($contact[$number]['contact_name_given'] != '' || $contact[$number]['contact_name_family'] != '') {
echo " <i>".$contact[$number]['contact_name_given'].' '.$contact[$number]['contact_name_family'].'</i>';
echo "<span style='float: right; font-size: 65%; line-height: 60%; margin-top: 5px; margin-left: 5px;'>".format_phone($number).'</span>';
echo " <i>".escape($contact[$number]['contact_name_given'].' '.$contact[$number]['contact_name_family']).'</i>';
echo "<span style='float: right; font-size: 65%; line-height: 60%; margin-top: 5px; margin-left: 5px;'>".escape(format_phone($number)).'</span>';
}
else {
echo " ".format_phone($number);
echo " ".escape(format_phone($number));
}
echo "</td></tr>\n";
$c = $c == 0 ? 1 : 0;