2016-10-01 12:48:15 +02:00

33 lines
1.4 KiB
Markdown

Bugs:
- [x] when switching channels sometimes messages are persisted in the new
channel, the Buffer() in Chat will probably not go further than the
latest message. Could be that items are added to List and not cleared
when switching channels
- [x] send message as user, now it will send it as a bot
- [x] alot of usernames 'unknown' should be a better way to uncover this
- [x] message creation in input.go and events.go should be made into function
CreateMessage
- [x] restarting the application will always add the latest sent message
through RTM in the selected channel
- [x] uncovering usernames takes too long, should find a better way
test without uncovering, if that is the problem
- [ ] GetMessages for a channel doesn't have to load messages based on height
of chat pane (y). Because message will sometimes span more than one
line and we're able to scroll. Only figure out how many messages you
want to load.
- [ ] GetMessages for a channel can result in `json: cannot unmarshal number
into Go value of type string` https://github.com/nlopes/slack/issues/92
- [ ] docs at exported functions
- [ ] incoming message event.go probably need a type switch
- [ ] set channel on start
Features:
- [x] channel name in chat pane
- [x] new message indicator
- [x] scrolling in chat pane
- [x] group channels, im channels
- [x] scrolling in channel pane
- [ ] remove unsubscribed or closed channels/groups/im