Allow first DM to any user and show real login in profile

This commit is contained in:
ai5590
2026-04-05 12:12:46 +03:00
parent 32c046233b
commit 91ed444c90
3 changed files with 6 additions and 23 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export function render({ navigate, route }) {
if (!isContact) {
const warning = document.createElement('div');
warning.className = 'card stack';
warning.innerHTML = '<p class="meta-muted">Пользователь не в контактах. Можно отвечать, если он уже писал вам.</p>';
warning.innerHTML = '<p class="meta-muted">Пользователь не в контактах. Можно писать ему сразу (MVP).</p>';
const btn = document.createElement('button');
btn.className = 'primary-btn';
btn.type = 'button';
+2 -1
View File
@@ -1,5 +1,6 @@
import { renderHeader } from '../components/header.js?v=20260403081123';
import { profile } from '../mock-data.js?v=20260403081123';
import { state } from '../state.js?v=20260403081123';
export const pageMeta = { id: 'profile-view', title: 'Профиль' };
@@ -40,7 +41,7 @@ export function render({ navigate }) {
</div>
<div>
<h2 style="font-size:22px; margin-bottom:2px;">${profile.name}</h2>
<p class="meta-muted">${profile.login}</p>
<p class="meta-muted">${state.session.login || profile.login}</p>
</div>
<div class="stack" style="gap:8px;">
<div class="card" style="padding:10px;"><span class="meta-muted">Телефон:</span> ${profile.phone}</div>