mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 16:11:05 +01:00
Merge pull request #705 from Cyberboss/MoreDiscordBS
Fix chat mapping IDs
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;
|
||||
}
|
||||
|
||||
@@ -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