Permalink
Browse files

do not add messages twice

fixes #38
  • Loading branch information...
krobelus committed Jan 6, 2017
1 parent e8d0e5b commit b03c7df96d968c056bfa61f396472b0df2cb5bd2
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/cyanide.cpp
@@ -895,7 +895,6 @@ void Cyanide::relocate_blocked_friend() {
void Cyanide::add_message(uint32_t fid, Message &message) {
friends.at(fid).messages.append(message);
uint32_t mid = friends[fid].messages.size() - 1;
friends.at(fid).messages.append(message);
if (message.ft != nullptr)
friends[fid].files[message.ft->file_number] = mid;

0 comments on commit b03c7df

Please sign in to comment.