handlediscord: bridge channel topics
This commit is contained in:
@@ -143,10 +143,15 @@ func (d *DiscordChatResync) GetChatInfo(ctx context.Context, portal *bridgev2.Po
|
|||||||
|
|
||||||
info := &bridgev2.ChatInfo{
|
info := &bridgev2.ChatInfo{
|
||||||
Name: &ch.Name,
|
Name: &ch.Name,
|
||||||
Members: ptr.Ptr(d.memberList()),
|
Topic: &ch.Topic,
|
||||||
Avatar: d.avatar(ctx),
|
Avatar: d.avatar(ctx),
|
||||||
|
|
||||||
|
Members: ptr.Ptr(d.memberList()),
|
||||||
|
|
||||||
Type: &roomType,
|
Type: &roomType,
|
||||||
|
|
||||||
CanBackfill: true,
|
CanBackfill: true,
|
||||||
|
|
||||||
ExtraUpdates: func(ctx context.Context, portal *bridgev2.Portal) (changed bool) {
|
ExtraUpdates: func(ctx context.Context, portal *bridgev2.Portal) (changed bool) {
|
||||||
meta := portal.Metadata.(*discordid.PortalMetadata)
|
meta := portal.Metadata.(*discordid.PortalMetadata)
|
||||||
if meta.GuildID != ch.GuildID {
|
if meta.GuildID != ch.GuildID {
|
||||||
|
|||||||
Reference in New Issue
Block a user