SHA256
feat(call-ui): полноценное окно звонка, статусы, звуки и тех-история вызовов
This commit is contained in:
@@ -325,6 +325,19 @@ export function addChatMessage(chatId, text) {
|
||||
getChatMessages(chatId).push({ from: 'out', text: message, firstTick: false, secondTick: false, unread: false });
|
||||
}
|
||||
|
||||
export function addSystemChatMessage(chatId, text, { from = 'out', kind = 'system' } = {}) {
|
||||
const message = String(text || '').trim();
|
||||
if (!message) return;
|
||||
getChatMessages(chatId).push({
|
||||
from: from === 'in' ? 'in' : 'out',
|
||||
text: message,
|
||||
kind: String(kind || 'system'),
|
||||
unread: from === 'in',
|
||||
firstTick: from !== 'in',
|
||||
secondTick: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function addIncomingMessage(chatId, text, messageId = '') {
|
||||
const msg = text?.trim();
|
||||
|
||||
Reference in New Issue
Block a user