MessageUtils

Utility functions for formatting message metadata and generating stable chat identifiers used throughout the messaging system.

Functions

Link copied to clipboard
fun formatTimestamp(timestamp: Long): String

Formats a Unix timestamp into a human-readable time string.

Link copied to clipboard
fun generateChatId(sender: String, receiver: String): String

Generates a stable, deterministic chat ID from two user identifiers.