[empathy] Even if Next*.html are missing, we have to use the appendNextMessage js function for consecutive mes
- From: Xavier Claessens <xclaesse src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Even if Next*.html are missing, we have to use the appendNextMessage js function for consecutive mes
- Date: Wed, 30 Sep 2009 14:17:21 +0000 (UTC)
commit d038bcbb47ea96e4c128f85f64897d557ea380b9
Author: Xavier Claessens <xclaesse gmail com>
Date: Wed Sep 30 09:40:16 2009 +0200
Even if Next*.html are missing, we have to use the appendNextMessage js function for consecutive message.
libempathy-gtk/empathy-theme-adium.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index edb0186..a860754 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -627,16 +627,22 @@ theme_adium_append_message (EmpathyChatView *view,
g_string_append (message_classes, " incoming");
}
+ /* Define javascript function to use */
+ if (consecutive) {
+ func = "appendNextMessage";
+ } else {
+ func = "appendMessage";
+ }
+
/* Outgoing */
if (empathy_contact_is_user (sender)) {
if (consecutive) {
- func = "appendNextMessage";
if (is_backlog) {
html = priv->data->out_nextcontext_html;
len = priv->data->out_nextcontext_len;
}
- /* Note backlog, or fallback if NextContext.html
+ /* Not backlog, or fallback if NextContext.html
* is missing */
if (html == NULL) {
html = priv->data->out_nextcontent_html;
@@ -647,7 +653,6 @@ theme_adium_append_message (EmpathyChatView *view,
/* Not consecutive, or fallback if NextContext.html and/or
* NextContent.html are missing */
if (html == NULL) {
- func = "appendMessage";
if (is_backlog) {
html = priv->data->out_context_html;
len = priv->data->out_context_len;
@@ -663,7 +668,6 @@ theme_adium_append_message (EmpathyChatView *view,
/* Incoming, or fallback if outgoing files are missing */
if (html == NULL) {
if (consecutive) {
- func = "appendNextMessage";
if (is_backlog) {
html = priv->data->in_nextcontext_html;
len = priv->data->in_nextcontext_len;
@@ -680,7 +684,6 @@ theme_adium_append_message (EmpathyChatView *view,
/* Not consecutive, or fallback if NextContext.html and/or
* NextContent.html are missing */
if (html == NULL) {
- func = "appendMessage";
if (is_backlog) {
html = priv->data->in_context_html;
len = priv->data->in_context_len;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]