address code review changes

This commit is contained in:
Iuri Matias 2020-05-19 15:29:11 -04:00
parent cd1e6780be
commit 8341dd36c0
1 changed files with 2 additions and 2 deletions

View File

@ -8,10 +8,10 @@ import ../../status/utils
var sendMessage = proc (view: ChatsView, chatId: string, msg: string): string =
echo "sending public message!"
let chatMessage = newChatMessage()
chatMessage.userName = "myself"
chatMessage.userName = "me" #TODO get users username
chatMessage.message = msg
chatMessage.timestamp = "0" #TODO convert to date/time?
chatMessage.isCurrentUser = true #TODO: Determine who originated the message
chatMessage.isCurrentUser = true
view.pushMessage(chatMessage)
status_chat.sendChatMessage(chatId, msg)