Giter Site home page Giter Site logo

wocky-old's Introduction

Wocky XMPP Library!

wocky-old's People

Contributors

sjoerdsimons avatar fledermaus avatar smcv avatar ndufresne avatar barisione avatar em- avatar cosimoc avatar noonien-d avatar xclaesse avatar alban avatar wjt avatar detrout avatar davidedmundson avatar asoliverez-ccu avatar dimstar77 avatar jonnylamb avatar ocrete avatar

Stargazers

lenucksi avatar

Watchers

James Cloos avatar  avatar

Forkers

detrout thaodan

wocky-old's Issues

telepathy-gabble twisted tests

I don't know why this is true, but popping the unacked stanzas cause the tests to fail.

I first tried to put a conditional in telepathy-gabble/src/im-factory.c around the call to gabble_im_factory_report_unacked but I couldn't see an easy way to get to the WockyXmppConnection object that has the is_sm_enabled call.

So I put the check in wocky-c2s-porter.c that if sm is not enabled wocky_c2s_porter_pop_unacked_stanzas immediately returns NULL and the tests pass.

I don't really like this solution, as

something else is going on. But I wanted to write down my progress.

diff --git a/wocky/wocky-c2s-porter.c b/wocky/wocky-c2s-porter.c
index 6473b4b..64cbe88 100644
--- a/wocky/wocky-c2s-porter.c
+++ b/wocky/wocky-c2s-porter.c
@@ -2335,7 +2335,11 @@ wocky_c2s_porter_pop_unacked_stanzas (WockyC2SPorter *porter)
 {
   WockyC2SPorterPrivate *priv = porter->priv;

-  if (priv->sm)
+  if (!wocky_xmpp_connection_get_sm_enabled (priv->connection))
+    {
+      return NULL;
+    }
+  else if (priv->sm)
     {
       g_warning ("wocky_sm_pop_unacked_stanza");
       return wocky_sm_pop_unacked_stanza (priv->sm);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.