aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/Text.hpp1
-rw-r--r--src/Text.cpp2
-rw-r--r--src/plugins/Matrix.cpp3
3 files changed, 3 insertions, 3 deletions
diff --git a/include/Text.hpp b/include/Text.hpp
index 72fdd66..26ac141 100644
--- a/include/Text.hpp
+++ b/include/Text.hpp
@@ -66,7 +66,6 @@ namespace QuickMedia
class Text
{
public:
- Text(bool bold_font);
Text(sf::String str, bool bold_font, unsigned int characterSize, float maxWidth, bool highlight_urls = false);
void setString(const sf::String &str);
diff --git a/src/Text.cpp b/src/Text.cpp
index efff61f..e012af5 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -33,8 +33,6 @@ namespace QuickMedia
return -1;
}
- Text::Text(bool bold_font) : Text("", bold_font, 0, 0.0f) {}
-
Text::Text(sf::String _str, bool bold_font, unsigned int characterSize, float maxWidth, bool highlight_urls) :
bold_font(bold_font),
characterSize(characterSize),
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index 775d172..5139380 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -644,6 +644,9 @@ namespace QuickMedia {
} else if(last_new_message) {
room->body_item->set_description(extract_first_line_remove_newline_elipses(matrix->message_get_author_displayname(last_new_message.get()), AUTHOR_MAX_LENGTH) + ": " + message_to_room_description_text(last_new_message.get()));
room->body_item->set_description_color(get_current_theme().faded_text_color);
+
+ rooms_page->move_room_to_top(room);
+ room_tags_page->move_room_to_top(room);
}
}