mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 16:11:05 +01:00
Merge branch 'master' of https://github.com/tgstation/tgstation-server into 598-TestChatTagging
This commit is contained in:
@@ -207,6 +207,7 @@ namespace Tgstation.Server.Host.Components.Chat
|
||||
{
|
||||
//need to add tag and isAdminChannel
|
||||
var mapping = enumerable.First().Value;
|
||||
message.User.Channel.Id = mapping.Channel.Id;
|
||||
message.User.Channel.Tag = mapping.Channel.Tag;
|
||||
message.User.Channel.IsAdmin = mapping.Channel.IsAdmin;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
|
||||
Channel = new Channel
|
||||
{
|
||||
RealId = e.Channel.Id,
|
||||
IsPrivate = true,
|
||||
IsPrivate = pm,
|
||||
ConnectionName = pm ? e.Author.Username : (e.Channel as ITextChannel)?.Guild.Name ?? "UNKNOWN",
|
||||
FriendlyName = e.Channel.Name
|
||||
//isAdmin and Tag populated by manager
|
||||
@@ -182,7 +182,7 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
|
||||
};
|
||||
};
|
||||
|
||||
var enumerator = channels.Select(x => GetChannelForChatChannel(x)).Where(x => x != null);
|
||||
var enumerator = channels.Select(x => GetChannelForChatChannel(x)).Where(x => x != null).ToList();
|
||||
|
||||
lock (this)
|
||||
{
|
||||
@@ -190,7 +190,7 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
|
||||
mappedChannels.AddRange(enumerator.Select(x => x.RealId));
|
||||
}
|
||||
|
||||
return Task.FromResult<IReadOnlyList<Channel>>(enumerator.ToList());
|
||||
return Task.FromResult<IReadOnlyList<Channel>>(enumerator);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user