address code review changes
This commit is contained in:
parent
cd1e6780be
commit
8341dd36c0
|
@ -8,10 +8,10 @@ import ../../status/utils
|
||||||
var sendMessage = proc (view: ChatsView, chatId: string, msg: string): string =
|
var sendMessage = proc (view: ChatsView, chatId: string, msg: string): string =
|
||||||
echo "sending public message!"
|
echo "sending public message!"
|
||||||
let chatMessage = newChatMessage()
|
let chatMessage = newChatMessage()
|
||||||
chatMessage.userName = "myself"
|
chatMessage.userName = "me" #TODO get users username
|
||||||
chatMessage.message = msg
|
chatMessage.message = msg
|
||||||
chatMessage.timestamp = "0" #TODO convert to date/time?
|
chatMessage.timestamp = "0" #TODO convert to date/time?
|
||||||
chatMessage.isCurrentUser = true #TODO: Determine who originated the message
|
chatMessage.isCurrentUser = true
|
||||||
|
|
||||||
view.pushMessage(chatMessage)
|
view.pushMessage(chatMessage)
|
||||||
status_chat.sendChatMessage(chatId, msg)
|
status_chat.sendChatMessage(chatId, msg)
|
||||||
|
|
Loading…
Reference in New Issue