summaryrefslogtreecommitdiff
path: root/src/messenger/gnunet-service-messenger_room.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-11-19 21:02:17 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2021-11-19 21:02:17 +0100
commit820ba28f3f14ac8cc87ac7272fb0933f81301946 (patch)
tree9dd03ab1288f0d01608745f06389eb0110ed8346 /src/messenger/gnunet-service-messenger_room.c
parent020bc56abfb923fa2f4c770be71eb8b26adfbb89 (diff)
-fix missing join messages in known rooms
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/messenger/gnunet-service-messenger_room.c')
-rw-r--r--src/messenger/gnunet-service-messenger_room.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/messenger/gnunet-service-messenger_room.c b/src/messenger/gnunet-service-messenger_room.c
index 77657591e..d34665511 100644
--- a/src/messenger/gnunet-service-messenger_room.c
+++ b/src/messenger/gnunet-service-messenger_room.c
@@ -362,12 +362,7 @@ open_room (struct GNUNET_MESSENGER_SrvRoom *room,
const struct GNUNET_ShortHashCode *member_id = get_handle_member_id (handle, get_room_key(room));
struct GNUNET_MESSENGER_MemberStore *member_store = get_room_member_store(room);
- struct GNUNET_MESSENGER_Member *member = get_store_member(member_store, member_id);
-
- if (member)
- goto exit_open_room;
-
- member = add_store_member(member_store, member_id);
+ struct GNUNET_MESSENGER_Member *member = add_store_member(member_store, member_id);
if ((GNUNET_NO == join_room (room, handle, member)) && (room->port))
{
@@ -379,7 +374,6 @@ open_room (struct GNUNET_MESSENGER_SrvRoom *room,
return GNUNET_NO;
}
-exit_open_room:
struct GNUNET_MESSENGER_Message *peer_msg = create_message_peer (room->service);
GNUNET_memcpy(&(peer_msg->header.sender_id), member_id, sizeof(*member_id));
return (room->port ? send_room_message (room, handle, peer_msg) : GNUNET_NO);