aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-17 02:12:55 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-17 02:12:58 +0200
commit528a61c86876de814ff4e65855926a750ba24587 (patch)
treeeb9e794211098965421e64e05baed2be142f43a6 /src
parentba51ca6342454ab33b645d377405e36a9876ac5b (diff)
Avatars for everybody
Diffstat (limited to 'src')
-rw-r--r--src/Channel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Channel.cpp b/src/Channel.cpp
index a63fcc4..06c0b79 100644
--- a/src/Channel.cpp
+++ b/src/Channel.cpp
@@ -18,7 +18,6 @@ namespace dchat
localUser(_localUser ? _localUser : new OfflineUser("You"))
{
addUserLocally(localUser);
- localUser->avatarUrl = "https://discordemoji.com/assets/emoji/HanekawaSmug.gif";
addLocalMessage(u8"[emoji](https://discordemoji.com/assets/emoji/PepeDab.gif) deaf [emoji](https://discordemoji.com/assets/emoji/COGGERS.gif)", &systemUser, 0, odhtdb::Hash());
addLocalMessage(u8"[emoji](https://discordemoji.com/assets/emoji/PepeDab.gif)[emoji](https://discordemoji.com/assets/emoji/COGGERS.gif)", &systemUser, 0, odhtdb::Hash());
@@ -132,6 +131,7 @@ namespace dchat
void Channel::addUserLocally(User *user)
{
users.push_back(user);
+ user->avatarUrl = "https://discordemoji.com/assets/emoji/HanekawaSmug.gif";
if(user->isOnlineUser())
{
auto onlineUser = static_cast<OnlineUser*>(user);