Fix Signal messages and replies

This commit is contained in:
2026-03-03 15:51:58 +00:00
parent 56c620473f
commit d6bd56dace
31 changed files with 3317 additions and 668 deletions

View File

@@ -22,22 +22,24 @@
<td>
<div class="buttons">
<button
type="button"
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
{% if account_unlink_url_name %}
hx-delete="{% url account_unlink_url_name type=type account=item %}"
hx-post="{% url account_unlink_url_name type=type account=item %}"
hx-trigger="click"
hx-target="#{{ context_object_name|slugify }}-panel"
hx-swap="outerHTML"
{% endif %}
{% if account_unlink_url_name %}
hx-confirm="Are you sure you wish to unlink {{ item }}?"
hx-confirm="Unlink {{ item }} from this bridge client so you can relink by scanning a new QR code?"
{% endif %}
class="button"
class="button is-light"
{% if not account_unlink_url_name %}disabled{% endif %}>
<span class="icon-text">
<span class="icon">
<i class="fa-solid fa-xmark"></i>
<i class="fa-solid fa-rotate"></i>
</span>
<span>{{ account_unlink_label|default:"Unlink" }}</span>
</span>
</button>
{% if show_contact_actions %}
@@ -97,9 +99,15 @@
{% endfor %}
</table>
{% if account_unlink_label == "Relink" %}
<p class="help" style="margin-bottom: 0.6rem;">
Relink flow: click <strong>Relink</strong> on the current account, then use
<strong>Add account</strong> below to generate and scan a fresh QR code.
</p>
{% endif %}
<form
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-post="{% url account_add_url_name type=type %}"
hx-post="{% url account_add_url_name type=account_add_type|default:type %}"
hx-target="{% if account_add_target %}{{ account_add_target }}{% else %}#widgets-here{% endif %}"
hx-swap="{% if account_add_swap %}{{ account_add_swap }}{% else %}innerHTML{% endif %}">
{% csrf_token %}