store chatusers in memory

This commit is contained in:
destro174 2021-08-08 14:52:42 +02:00
parent 9551785f83
commit c056fad7bb

View File

@ -1,5 +1,6 @@
package com.alttd.chat.database;
import com.alttd.chat.managers.ChatUserManager;
import com.alttd.chat.managers.PartyManager;
import com.alttd.chat.objects.ChatUser;
import com.alttd.chat.objects.Mail;
@ -372,6 +373,7 @@ public class Queries {
String toggledChannel = resultSet.getString("toggled_channel");
Channel channel = toggledChannel == null ? null : Channel.getChatChannel(toggledChannel);
user = new ChatUser(uuid, partyId, channel);
ChatUserManager.addUser(user);
}
} catch (SQLException e) {