diff --git a/libdino/src/service/message_processor.vala b/libdino/src/service/message_processor.vala
index 04c7d1a5..01687083 100644
--- a/libdino/src/service/message_processor.vala
+++ b/libdino/src/service/message_processor.vala
@@ -472,8 +472,7 @@ public class MessageProcessor : StreamInteractionModule, Object {
string fallback = FallbackBody.get_quoted_fallback_body(content_item);
- long fallback_length = fallback.length;
- var fallback_location = new Xep.FallbackIndication.FallbackLocation(0, (int)fallback_length);
+ var fallback_location = new Xep.FallbackIndication.FallbackLocation(0, (int)fallback.char_count());
Xep.FallbackIndication.set_fallback(new_stanza, new Xep.FallbackIndication.Fallback(Xep.Replies.NS_URI, new Xep.FallbackIndication.FallbackLocation[] { fallback_location }));
return fallback;
diff --git a/libdino/src/service/replies.vala b/libdino/src/service/replies.vala
index 2bb10e0b..58d44b37 100644
--- a/libdino/src/service/replies.vala
+++ b/libdino/src/service/replies.vala
@@ -105,7 +105,8 @@ namespace Dino {
string body = message.body;
foreach (var fallback in message.get_fallbacks()) {
if (fallback.ns_uri == Xep.Replies.NS_URI && message.quoted_item_id > 0) {
- body = body[0:fallback.locations[0].from_char] + body[fallback.locations[0].to_char:body.length];
+ body = body[0:body.index_of_nth_char(fallback.locations[0].from_char)] +
+ body[body.index_of_nth_char(fallback.locations[0].to_char):body.length];
}
}
return body;
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
index 9a48bb4e..abcf01ba 100644
--- a/main/CMakeLists.txt
+++ b/main/CMakeLists.txt
@@ -17,9 +17,7 @@ find_packages(MAIN_PACKAGES REQUIRED
set(RESOURCE_LIST
dino-conversation-list-placeholder-arrow.svg
- icons/scalable/actions/dino-account-plus-symbolic.svg
icons/scalable/actions/dino-emoticon-add-symbolic.svg
- icons/scalable/actions/dino-emoticon-symbolic.svg
icons/scalable/actions/dino-qr-code-symbolic.svg
icons/scalable/apps/im.dino.Dino.svg
@@ -42,8 +40,6 @@ set(RESOURCE_LIST
icons/scalable/mimetypes/dino-file-video-symbolic.svg
icons/scalable/status/dino-double-tick-symbolic.svg
- icons/scalable/status/dino-microphone-off-symbolic.svg
- icons/scalable/status/dino-microphone-symbolic.svg
icons/scalable/status/dino-party-popper-symbolic.svg
icons/scalable/status/dino-security-high-symbolic.svg
icons/scalable/status/dino-status-away.svg
@@ -71,6 +67,7 @@ set(RESOURCE_LIST
file_default_widget.ui
file_send_overlay.ui
global_search.ui
+ gtk/help-overlay.ui
conversation_content_view/item_metadata_header.ui
conversation_content_view/view.ui
manage_accounts/account_row.ui
@@ -86,7 +83,6 @@ set(RESOURCE_LIST
quote.ui
search_autocomplete.ui
settings_dialog.ui
- shortcuts.ui
unified_main_content.ui
unified_window_placeholder.ui
diff --git a/main/data/chat_input.ui b/main/data/chat_input.ui
index 5e84c360..cde00b22 100644
--- a/main/data/chat_input.ui
+++ b/main/data/chat_input.ui
@@ -51,7 +51,7 @@
@@ -90,4 +90,4 @@
-
\ No newline at end of file
+
diff --git a/main/data/gresource.xml b/main/data/gresource.xml
index 6d9febab..656defc4 100644
--- a/main/data/gresource.xml
+++ b/main/data/gresource.xml
@@ -20,9 +20,8 @@
file_default_widget.ui
file_send_overlay.ui
global_search.ui
- icons/scalable/actions/dino-account-plus-symbolic.svg
+ gtk/help-overlay.ui
icons/scalable/actions/dino-emoticon-add-symbolic.svg
- icons/scalable/actions/dino-emoticon-symbolic.svg
icons/scalable/actions/dino-qr-code-symbolic.svg
icons/scalable/apps/im.dino.Dino-symbolic.svg
icons/scalable/apps/im.dino.Dino.svg
@@ -41,8 +40,6 @@
icons/scalable/mimetypes/dino-file-table-symbolic.svg
icons/scalable/mimetypes/dino-file-video-symbolic.svg
icons/scalable/status/dino-double-tick-symbolic.svg
- icons/scalable/status/dino-microphone-off-symbolic.svg
- icons/scalable/status/dino-microphone-symbolic.svg
icons/scalable/status/dino-party-popper-symbolic.svg
icons/scalable/status/dino-security-high-symbolic.svg
icons/scalable/status/dino-status-away.svg
@@ -65,7 +62,6 @@
quote.ui
search_autocomplete.ui
settings_dialog.ui
- shortcuts.ui
style-dark.css
style.css
unified_main_content.ui
diff --git a/main/data/shortcuts.ui b/main/data/gtk/help-overlay.ui
similarity index 88%
rename from main/data/shortcuts.ui
rename to main/data/gtk/help-overlay.ui
index 30b5ab83..17b0555c 100644
--- a/main/data/shortcuts.ui
+++ b/main/data/gtk/help-overlay.ui
@@ -1,6 +1,6 @@
-