feat: Add 'atas' (minutes/records) management feature, and implement various improvements across UI, backend logic, and authentication.
This commit is contained in:
@@ -9,17 +9,17 @@
|
||||
* @returns Mensagem formatada
|
||||
*/
|
||||
export function wrapChatMessage(conteudo: string, tipo?: string): string {
|
||||
// Se já tiver formatação especial, retornar como está
|
||||
if (conteudo.includes('[SGSE]') || conteudo.includes('[Sistema]')) {
|
||||
return conteudo;
|
||||
}
|
||||
// Se já tiver formatação especial, retornar como está
|
||||
if (conteudo.includes('[SGSE]') || conteudo.includes('[Sistema]')) {
|
||||
return conteudo;
|
||||
}
|
||||
|
||||
// Para mensagens do sistema, adicionar prefixo
|
||||
if (tipo === 'sistema' || tipo === 'notificacao') {
|
||||
return `[SGSE] ${conteudo}`;
|
||||
}
|
||||
// Para mensagens do sistema, adicionar prefixo
|
||||
if (tipo === 'sistema' || tipo === 'notificacao') {
|
||||
return `[SGSE] ${conteudo}`;
|
||||
}
|
||||
|
||||
return conteudo;
|
||||
return conteudo;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -29,18 +29,12 @@ export function wrapChatMessage(conteudo: string, tipo?: string): string {
|
||||
* @param acao - Ação sugerida (opcional)
|
||||
* @returns Mensagem formatada
|
||||
*/
|
||||
export function formatChatNotification(
|
||||
titulo: string,
|
||||
conteudo: string,
|
||||
acao?: string
|
||||
): string {
|
||||
let mensagem = `🔔 ${titulo}\n\n${conteudo}`;
|
||||
|
||||
if (acao) {
|
||||
mensagem += `\n\n💡 ${acao}`;
|
||||
}
|
||||
|
||||
return mensagem;
|
||||
export function formatChatNotification(titulo: string, conteudo: string, acao?: string): string {
|
||||
let mensagem = `🔔 ${titulo}\n\n${conteudo}`;
|
||||
|
||||
if (acao) {
|
||||
mensagem += `\n\n💡 ${acao}`;
|
||||
}
|
||||
|
||||
return mensagem;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user