mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
be72d73c3d
* feat: add `Go to message` action in search popup * chore: add changelog entry * fix: only scroll if the scrollbar is shown * fix: go to message when view isn't focused * feat: animate highlighted message * fix: missing includes * fix: order of initialization * fix: add `ChannelView::mayContainMessage` to filter messages * feat: add `Go to message` action in `/mentions` * fix: ignore any mentions channel when searching for split * feat: add `Go to message` action in reply-threads * fix: remove redundant `source` parameter * feat: add `Go to message` action in user-cards * feat: add link to deleted message * fix: set current time to 0 when starting animation * chore: update changelog * fix: add default case (unreachable) * chore: removed unused variable * fix: search in mentions * fix: always attempt to focus split * fix: rename `Link::MessageId` to `Link::JumpToMessage` * fix: rename `selectAndScrollToMessage` to `scrollToMessage` * fix: rename internal `scrollToMessage` to `scrollToMessageLayout` * fix: deleted message link in search popup * chore: reword explanation * fix: use for-loop instead of `std::find_if` * refactor: define highlight colors in `BaseTheme` * core: replace `iff` with `if` * fix: only return if the message found * Reword/phrase/dot changelog entries Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
41 lines
677 B
C++
41 lines
677 B
C++
#pragma once
|
|
|
|
#include <QString>
|
|
|
|
namespace chatterino {
|
|
|
|
struct Link {
|
|
public:
|
|
enum Type {
|
|
None,
|
|
Url,
|
|
CloseCurrentSplit,
|
|
UserInfo,
|
|
UserTimeout,
|
|
UserBan,
|
|
UserWhisper,
|
|
InsertText,
|
|
ShowMessage,
|
|
UserAction,
|
|
AutoModAllow,
|
|
AutoModDeny,
|
|
OpenAccountsPage,
|
|
JumpToChannel,
|
|
Reconnect,
|
|
CopyToClipboard,
|
|
ReplyToMessage,
|
|
ViewThread,
|
|
JumpToMessage,
|
|
};
|
|
|
|
Link();
|
|
Link(Type getType, const QString &getValue);
|
|
|
|
Type type;
|
|
QString value;
|
|
|
|
bool isValid() const;
|
|
bool isUrl() const;
|
|
};
|
|
|
|
} // namespace chatterino
|