- Show timestamp of messages
- Show warning, not to give out personal informations
This commit is contained in:
@@ -588,6 +588,7 @@ void App::renderChatLine(Wt::Json::Object &line, Wt::Json::Object conversation,
|
||||
} else {
|
||||
item = new Wt::WText("");
|
||||
}
|
||||
item->setToolTip(line["timestamp"]);
|
||||
item->setInline(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <Wt/Json/Array.h>
|
||||
#include <Wt/Json/Serializer.h>
|
||||
#include <Wt/Auth/HashFunction.h>
|
||||
#include <Wt/WLocalDateTime.h>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
@@ -677,6 +678,7 @@ Wt::Json::Object Broadcast::Message::json() {
|
||||
json["string"] = Wt::Json::Value(message);
|
||||
json["image"] = Wt::Json::Value(image);
|
||||
json["id"] = Wt::Json::Value(messageId);
|
||||
json["timestamp"] = sendTime.toString();
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user