aboutsummaryrefslogtreecommitdiff
path: root/src/Message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Message.cpp')
-rw-r--r--src/Message.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Message.cpp b/src/Message.cpp
index 5cd8445..77e3cfa 100644
--- a/src/Message.cpp
+++ b/src/Message.cpp
@@ -7,9 +7,10 @@ using namespace std;
namespace dchat
{
- Message::Message(User *_user, const std::string &_text) :
+ Message::Message(User *_user, const std::string &_text, u64 _timestampSeconds) :
user(_user),
- text(sf::String::fromUtf8(_text.begin(), _text.end()), ResourceCache::getFont("fonts/Roboto-Regular.ttf"), 18 * Settings::getScaling(), 0.0f, false)
+ text(sf::String::fromUtf8(_text.begin(), _text.end()), ResourceCache::getFont("fonts/Roboto-Regular.ttf"), 18 * Settings::getScaling(), 0.0f, false),
+ timestampSeconds(_timestampSeconds)
{
text.setFillColor(ColorScheme::getTextRegularColor());
}