Merge branch 'bugfix' of erinn/bounce into master

This commit is contained in:
erinn 2018-11-28 21:32:07 +00:00 committed by Gogs
commit fe5f83c3f7
1 changed files with 5 additions and 1 deletions

View File

@ -168,9 +168,13 @@ func loadCwtchData(gcd *gothings.GrandCentralDispatcher) {
group.NewMessage = make(chan model.Message)
go characters.CwtchListener(gcd.UIState.AddMessage, groups[i], group.NewMessage)
the.Peer.JoinServer(group.GroupServer)
nick, exists := group.GetAttribute("nick")
if !exists {
nick = group.GroupID[:12]
}
gcd.UIState.AddContact(&gobjects.Contact{
group.GroupID,
group.GroupID[:12],
nick,
cwutil.RandomGroupImage(group.GroupID),
group.GroupServer,
0,