fix: status on send message

This commit is contained in:
Davidson Gomes
2024-10-06 09:58:57 -03:00
parent 1f6473cfd5
commit 0f7c2437bc
5 changed files with 63 additions and 73 deletions

10
src/utils/renderStatus.ts Normal file
View File

@@ -0,0 +1,10 @@
import { wa } from '@api/types/wa.types';
export const status: Record<number, wa.StatusMessage> = {
0: 'ERROR',
1: 'PENDING',
2: 'SERVER_ACK',
3: 'DELIVERY_ACK',
4: 'READ',
5: 'PLAYED',
};